File Coverage

blib/lib/Net/DRI/Protocol/EPP/Extensions/TCI/Message.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             ## Domain Registry Interface, .RU/.SU/.XN--P1AI EPP Message Extension for Net::DRI
2             ##
3             ## Copyright (c) 2010-2011 Dmitry Belyavsky
4             ## 2011 Patrick Mevzek . All rights reserved.
5             ##
6             ## This file is part of Net::DRI
7             ##
8             ## Net::DRI is free software; you can redistribute it and/or modify
9             ## it under the terms of the GNU General Public License as published by
10             ## the Free Software Foundation; either version 2 of the License, or
11             ## (at your option) any later version.
12             ##
13             ## See the LICENSE file that comes with this distribution for more details.
14             ####################################################################################################
15              
16             package Net::DRI::Protocol::EPP::Extensions::TCI::Message;
17              
18 1     1   661 use strict;
  1         1  
  1         23  
19 1     1   3 use warnings;
  1         1  
  1         20  
20              
21 1     1   3 use base qw(Net::DRI::Protocol::EPP::Message);
  1         1  
  1         96  
22              
23             sub parse_greeting
24             {
25             my ($self,$g)=@_;
26              
27             my $tmp = $self->SUPER::parse_greeting($g);
28             delete $tmp->{svcext};
29              
30             my @svcs = map {(split(/\s+/, $_))[0]} @{$tmp->{svcs}};
31             $tmp->{svcs} = \@svcs;
32              
33             return $tmp;
34             }
35              
36             ####################################################################################################
37             1;
38              
39             =pod
40              
41             =head1 NAME
42              
43             Net::DRI::Protocol::EPP::Extensions::TCI::Message - TCI EPP Message Extension for Net::DRI
44              
45             =head1 DESCRIPTION
46              
47             Please see the README file for details.
48              
49             =head1 SUPPORT
50              
51             For now, support questions should be sent to:
52              
53             Enetdri@dotandco.comE
54              
55             Please also see the SUPPORT file in the distribution.
56              
57             =head1 SEE ALSO
58              
59             Ehttp://www.dotandco.com/services/software/Net-DRI/E
60              
61             =head1 AUTHOR
62              
63             Dmitry Belyavsky, Ebeldmit@gmail.comE
64             Patrick Mevzek, Enetdri@dotandco.comE
65              
66             =head1 COPYRIGHT
67              
68             Copyright (c) 2010-2011 Dmitry Belyavsky
69             Copyright (c) 2011 Patrick Mevzek .
70             All rights reserved.
71              
72             This program is free software; you can redistribute it and/or modify
73             it under the terms of the GNU General Public License as published by
74             the Free Software Foundation; either version 2 of the License, or
75             (at your option) any later version.
76              
77             See the LICENSE file that comes with this distribution for more details.
78              
79             =cut