File Coverage

blib/lib/Net/DRI/Protocol/EPP/Extensions/SWITCH.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, Switch .CH/.LI EPP extensions
2             ##
3             ## Copyright (c) 2008-2010,2013 Tonnerre Lombard .
4             ## 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::SWITCH;
17              
18 2     2   1110 use strict;
  2         2  
  2         46  
19 2     2   6 use warnings;
  2         2  
  2         41  
20              
21 2     2   6 use base qw/Net::DRI::Protocol::EPP/;
  2         2  
  2         420  
22              
23             use Net::DRI::Data::Contact::SWITCH;
24              
25             =pod
26              
27             =head1 NAME
28              
29             Net::DRI::Protocol::EPP::Extensions::SWITCH - .CH/.LI EPP extensions for Net::DRI
30              
31             =head1 DESCRIPTION
32              
33             Please see the README file for details.
34              
35             =head1 SUPPORT
36              
37             For now, support questions should be sent to:
38              
39             Etonnerre.lombard@sygroup.chE
40              
41             Please also see the SUPPORT file in the distribution.
42              
43             =head1 SEE ALSO
44              
45             Ehttp://oss.bsdprojects.net/projects/netdri/E or
46             Ehttp://www.dotandco.com/services/software/Net-DRI/E
47              
48             =head1 AUTHOR
49              
50             Tonnerre Lombard, Etonnerre.lombard@sygroup.chE
51              
52             =head1 COPYRIGHT
53              
54             Copyright (c) 2008-2010,2013 Tonnerre Lombard .
55             All rights reserved.
56              
57             This program is free software; you can redistribute it and/or modify
58             it under the terms of the GNU General Public License as published by
59             the Free Software Foundation; either version 2 of the License, or
60             (at your option) any later version.
61              
62             See the LICENSE file that comes with this distribution for more details.
63              
64             =cut
65              
66             ####################################################################################################
67              
68             sub setup
69             {
70             my ($self,$rp)=@_;
71             $self->capabilities('domain_update','status',undef);
72             $self->capabilities('contact_update','status',undef);
73             $self->factories('contact',sub { return Net::DRI::Data::Contact::SWITCH->new(); });
74             return;
75             }
76              
77             sub default_extensions { return qw/SecDNS GracePeriod/; }
78              
79             ####################################################################################################
80             1;