SRS/Domain.pm

filter: Statementstmt 90.0% 9 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 85.7% 12 / 14 SCAR 0.0
CC
1
Cov
90%
root_element
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« SRS/Domain/Transferred.pm ↑ Summary SRS/Registrar/Query.pm »
1  
2 package XML::SRS::Domain;
3 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use PRANG::Graph;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use XML::SRS::Types;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 has_attr 'name' =>
8 is => "ro",
9 isa => "XML::SRS::DomainName",
10 xml_name => "DomainName",
11 ;
12  
13 has_attr 'registrant_ref' =>
14 is => "ro",
15 isa => "XML::SRS::UID",
16 xml_name => "RegistrantRef",
17 xml_required => 0,
18 ;
19  
20 has_attr 'registrar_name' =>
21 is => "ro",
22 isa => "XML::SRS::UID",
23 xml_name => "RegistrarName",
24 xml_required => 0,
25 ;
26  
27 has_attr 'status' =>
28 is => "ro",
29 isa => "XML::SRS::DomainStatus",
30 xml_name => "Status",
31 xml_required => 0,
32 ;
33  
34 has_attr 'delegate' =>
35 is => "ro",
36 isa => "XML::SRS::Boolean",
37 xml_name => "Delegate",
38 xml_required => 0,
39 ;
40  
41 has_attr 'term' =>
42 is => "ro",
43 isa => "XML::SRS::Term",
44 xml_name => "Term",
45 xml_required => 0,
46 ;
47  
48 has_attr 'registrar_id' =>
49 is => "ro",
50 isa => "XML::SRS::Number",
51 xml_name => "RegistrarId",
52 xml_required => 0,
53 ;
54  
55 has_attr 'UDAI' =>
56 is => "ro",
57 isa => 'XML::SRS::UDAI',
58 xml_name => "UDAI",
59 xml_required => 0,
60 ;
61  
62 # elements
63 has_element 'nameservers' =>
64 is => 'ro',
65 isa => 'XML::SRS::Server::List',
66 xml_nodeName => 'NameServers',
67 xml_required => 0,
68 ;
69  
70 has_element 'contact_registrant' =>
71 is => 'ro',
72 isa => 'XML::SRS::Contact',
73 xml_nodeName => 'RegistrantContact',
74 xml_required => 0,
75 coerce => 1,
76 ;
77  
78 # I think this element is wrong.
79 has_element 'contact_registrar_public' =>
80 is => 'ro',
81 isa => 'XML::SRS::Contact',
82 xml_nodeName => 'RegistrarPublicContact',
83 xml_required => 0,
84 coerce => 1,
85 ;
86  
87 has_element 'contact_admin' =>
88 is => 'ro',
89 isa => 'XML::SRS::Contact',
90 xml_nodeName => 'AdminContact',
91 xml_required => 0,
92 coerce => 1,
93 ;
94  
95 has_element 'contact_technical' =>
96 is => 'ro',
97 isa => 'XML::SRS::Contact',
98 xml_nodeName => 'TechnicalContact',
99 xml_required => 0,
100 coerce => 1,
101 ;
102  
103 has_element 'billed_until' =>
104 is => 'ro',
105 isa => 'XML::SRS::TimeStamp',
106 xml_required => 0,
107 xml_nodeName => 'BilledUntil',
108 ;
109  
110 has_element 'registered_date' =>
111 is => 'ro',
112 isa => 'XML::SRS::TimeStamp',
113 xml_required => 0,
114 xml_nodeName => 'RegisteredDate',
115 ;
116  
117 has_element 'cancelled_date' =>
118 is => 'ro',
119 isa => 'XML::SRS::TimeStamp',
120 xml_required => 0,
121 xml_nodeName => 'CancelledDate',
122 ;
123  
124 has_element 'locked_date' =>
125 is => 'ro',
126 isa => 'XML::SRS::TimeStamp',
127 xml_required => 0,
128 xml_nodeName => 'LockedDate',
129 ;
130  
131 has_element 'audit' =>
132 is => "rw",
133 isa => "XML::SRS::AuditDetails",
134 xml_nodeName => "AuditDetails",
135 predicate => "has_audit",
136 ;
137  
138 sub root_element {
139 0 ▶ "Domain";
Subroutine root_element: not called CC=1 SCAR=6.9
140 }
141 with 'XML::SRS::ActionResponse';
142  
143 1;
« SRS/Domain/Transferred.pm ↑ Summary SRS/Registrar/Query.pm »