File Coverage

blib/lib/Net/DRI/Protocol/EPP/Extensions/AFNIC/Status.pm
Criterion Covered Total %
statement 9 17 52.9
branch n/a
condition n/a
subroutine 3 7 42.8
pod 1 4 25.0
total 13 28 46.4


line stmt bran cond sub pod time code
1             ## Domain Registry Interface, EPP Status for AFNIC (.FR/.RE)
2             ##
3             ## Copyright (c) 2008,2011,2013 Patrick Mevzek . All rights reserved.
4             ##
5             ## This file is part of Net::DRI
6             ##
7             ## Net::DRI is free software; you can redistribute it and/or modify
8             ## it under the terms of the GNU General Public License as published by
9             ## the Free Software Foundation; either version 2 of the License, or
10             ## (at your option) any later version.
11             ##
12             ## See the LICENSE file that comes with this distribution for more details.
13             ####################################################################################################
14              
15             package Net::DRI::Protocol::EPP::Extensions::AFNIC::Status;
16              
17 1     1   662 use base qw/Net::DRI::Protocol::EPP::Core::Status/;
  1         1  
  1         73  
18              
19 1     1   4 use strict;
  1         1  
  1         15  
20 1     1   3 use warnings;
  1         0  
  1         109  
21              
22             =pod
23              
24             =head1 NAME
25              
26             Net::DRI::Protocol::EPP::Extensions::AFNIC::Status - AFNIC (.FR/.RE) EPP Status for Net::DRI
27              
28             =head1 DESCRIPTION
29              
30             Please see the README file for details.
31              
32             =head1 SUPPORT
33              
34             For now, support questions should be sent to:
35              
36             Enetdri@dotandco.comE
37              
38             Please also see the SUPPORT file in the distribution.
39              
40             =head1 SEE ALSO
41              
42             Ehttp://www.dotandco.com/services/software/Net-DRI/E
43              
44             =head1 AUTHOR
45              
46             Patrick Mevzek, Enetdri@dotandco.comE
47              
48             =head1 COPYRIGHT
49              
50             Copyright (c) 2008,2011,2013 Patrick Mevzek .
51             All rights reserved.
52              
53             This program is free software; you can redistribute it and/or modify
54             it under the terms of the GNU General Public License as published by
55             the Free Software Foundation; either version 2 of the License, or
56             (at your option) any later version.
57              
58             See the LICENSE file that comes with this distribution for more details.
59              
60             =cut
61              
62             ####################################################################################################
63              
64             sub new
65             {
66 0     0 0   my $class=shift;
67 0           my $self=$class->SUPER::new(shift);
68              
69             ## Overwrite, as only clientHold is available
70 0           my %s=(
71             'publish' => 'clientHold',
72             );
73 0           $self->_register_pno(\%s);
74              
75 0           return $self;
76             }
77              
78 0     0 1   sub is_pending { return shift->has_any(qw/pendingCreate pendingDelete pendingRenew pendingTransfer pendingUpdate pendingRestore pendingTrade pendingRecover/); }
79 0     0 0   sub can_trade { return shift->has_not('serverTradeProhibited'); }
80 0     0 0   sub can_recover { return shift->has_not('serverRecoverProhibited'); }
81              
82             ####################################################################################################
83             1;