DRI/Protocol/Gandi/WS.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« DRI/Protocol/EPP/Extensions/VeriSign/Platforms/NameStore.pm ↑ Summary DRI/Protocol/IRIS.pm »
1 ## Domain Registry Interface, Gandi Web Services Protocol
2 ## As seen on https://api.ote.gandi.net/
3 ##
4 ## Copyright (c) 2008-2010,2013 Patrick Mevzek <netdri@dotandco.com>. 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::Gandi::WS;
17  
18 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 1 ▶use base qw(Net::DRI::Protocol);
Subroutine BEGIN: called CC=1 SCAR=0.0
22 use Net::DRI::Protocol::Gandi::WS::Message;
23  
24 =pod
25  
26 =head1 NAME
27  
28 Net::DRI::Protocol::Gandi::WS - Gandi Web Services Protocol for Net::DRI
29  
30 =head1 DESCRIPTION
31  
32 Please see the README file for details.
33  
34 =head1 SUPPORT
35  
36 For now, support questions should be sent to:
37  
38 E<lt>netdri@dotandco.comE<gt>
39  
40 Please also see the SUPPORT file in the distribution.
41  
42 =head1 SEE ALSO
43  
44 E<lt>http://www.dotandco.com/services/software/Net-DRI/E<gt>
45  
46 =head1 AUTHOR
47  
48 Patrick Mevzek, E<lt>netdri@dotandco.comE<gt>
49  
50 =head1 COPYRIGHT
51  
52 Copyright (c) 2008-2010,2013 Patrick Mevzek <netdri@dotandco.com>.
53 All rights reserved.
54  
55 This program is free software; you can redistribute it and/or modify
56 it under the terms of the GNU General Public License as published by
57 the Free Software Foundation; either version 2 of the License, or
58 (at your option) any later version.
59  
60 See the LICENSE file that comes with this distribution for more details.
61  
62 =cut
63  
64 ####################################################################################################
65  
66 sub new
67 {
68 my ($c,$ctx,$rp)=@_;
69 my $self=$c->SUPER::new($ctx);
70 $self->name('gandi_ws');
71 $self->version('0.1');
72 $self->factories('message',sub { my $m=Net::DRI::Protocol::Gandi::WS::Message->new(); $m->version('0.1'); return $m; });
73 $self->_load($rp);
74 return $self;
75 }
76  
77 sub _load
78 {
79 my ($self,$rp)=@_;
80 my @class=map { 'Net::DRI::Protocol::Gandi::WS::'.$_ } (qw/Account Domain/);
81 return $self->SUPER::_load(@class);
82 }
83  
84 sub transport_default
85 {
86 my ($self)=@_;
87 return (protocol_connection => 'Net::DRI::Protocol::Gandi::WS::Connection', protocol_version => 1);
88 }
89  
90 ####################################################################################################
91 1;
« DRI/Protocol/EPP/Extensions/VeriSign/Platforms/NameStore.pm ↑ Summary DRI/Protocol/IRIS.pm »