SRS/Registrar.pm

filter: Statementstmt 83.3% 10 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 87.5% 14 / 16 SCAR 0.0
CC
1
Cov
83%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« SRS/Handle/Update.pm ↑ Summary SRS/Handle.pm »
1  
2 package XML::SRS::Registrar;
3  
4 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use PRANG::Graph;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use XML::SRS::Types;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use XML::SRS::Contact;
Subroutine BEGIN: called CC=1 SCAR=2.6
9 use XML::SRS::Password;
10 use XML::SRS::Zone::List;
11 use XML::SRS::Role::List;
12  
13 has_attr 'id' =>
14 is => "ro",
15 isa => "XML::SRS::RegistrarId",
16 required => 1,
17 xml_name => "RegistrarId",
18 ;
19  
20 has_attr 'name' =>
21 is => "ro",
22 isa => "Str",
23 required => 1,
24 xml_name => "Name",
25 ;
26  
27 has_attr 'account_reference' =>
28 is => "ro",
29 isa => "Str",
30 required => 1,
31 xml_name => "AccRef",
32 ;
33  
34 has_attr 'url' =>
35 is => "ro",
36 isa => "Str",
37 xml_name => "URL",
38 xml_required => 0,
39 ;
40  
41 has_element 'contact_public' =>
42 is => "rw",
43 isa => "XML::SRS::Contact",
44 xml_nodeName => "RegistrarPublicContact",
45 coerce => 1,
46 ;
47  
48 has_element 'contact_private' =>
49 is => "rw",
50 isa => "XML::SRS::Contact",
51 xml_nodeName => "RegistrarSRSContact",
52 coerce => 1,
53 ;
54  
55 has_element 'contact_technical' =>
56 is => "rw",
57 isa => "XML::SRS::Contact",
58 xml_nodeName => "DefaultTechnicalContact",
59 coerce => 1,
60 ;
61  
62 has_element 'keyring' =>
63 is => "rw",
64 isa => "XML::SRS::Keyring",
65 xml_nodeName => "EncryptKeys",
66 ;
67  
68 has_element 'epp_auth' =>
69 is => "rw",
70 isa => "XML::SRS::Password",
71 xml_nodeName => "EPPAuth",
72 coerce => 1,
73 predicate => "has_epp_auth",
74 ;
75  
76 has_element 'allowed_zones' =>
77 is => "rw",
78 isa => "XML::SRS::Zone::List",
79 xml_nodeName => "Allowed2LDs",
80 predicate => "has_allowed_zones",
81 ;
82  
83 has_element 'roles' =>
84 is => "rw",
85 isa => "XML::SRS::Role::List",
86 xml_nodeName => "Roles",
87 predicate => "has_roles",
88 ;
89  
90 has_element 'audit' =>
91 is => "rw",
92 isa => "XML::SRS::AuditDetails",
93 xml_nodeName => "AuditDetails",
94 predicate => "has_audit",
95 ;
96  
97 sub root_element { "Registrar" }
98 with 'XML::SRS::ActionResponse';
99  
100 1;
« SRS/Handle/Update.pm ↑ Summary SRS/Handle.pm »