SRS/Handle/Update.pm

filter: Statementstmt 84.6% 11 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 88.8% 16 / 18 CC 1 SCAR 0.6
CC
1
Cov
85%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« SRS/Handle/Create.pm ↑ Summary SRS/Registrar.pm »
1 package XML::SRS::Handle::Update;
2 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 $XML::SRS::Handle::Update::VERSION = '0.09';
4 }
5  
6 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use PRANG::Graph;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use XML::SRS::Types;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 0 ▶use XML::SRS::Server::List;
Subroutine BEGIN: called CC=1 SCAR=2.6
10 use PRANG::XMLSchema::Types;
11  
12 # attributes
13 has_attr 'handle_id' =>
14 is => "ro",
15 isa => "Str",
16 xml_name => "HandleId",
17 predicate => "has_handle_id",
18 ;
19  
20 has_attr 'name' =>
21 is => "ro",
22 isa => "Str",
23 xml_name => "Name",
24 xml_required => 0,
25 predicate => "has_name",
26 ;
27  
28 has_attr 'email' =>
29 is => "ro",
30 isa => "Str",
31 xml_name => "Email",
32 xml_required => 0,
33 predicate => "has_email",
34 ;
35  
36 has_attr 'delete' =>
37 is => 'rw',
38 isa => 'PRANG::XMLSchema::boolean',
39 xml_name => 'Delete',
40 xml_required => 0,
41 ;
42  
43 # elements
44 has_element 'address' =>
45 is => "ro",
46 isa => "XML::SRS::Contact::Address",
47 xml_nodeName => "PostalAddress",
48 predicate => "has_address",
49 xml_required => 0,
50 coerce => 1,
51 ;
52  
53 has_element 'phone' =>
54 is => "ro",
55 isa => "XML::SRS::Contact::PSTN",
56 predicate => "has_phone",
57 xml_nodeName => "Phone",
58 xml_required => 0,
59 coerce => 1,
60 ;
61  
62 has_element 'fax' =>
63 is => "ro",
64 isa => "XML::SRS::Contact::PSTN",
65 predicate => "has_fax",
66 xml_nodeName => "Fax",
67 xml_required => 0,
68 coerce => 1,
69 ;
70  
71 has_element 'audit' =>
72 is => "rw",
73 isa => "XML::SRS::AuditDetails",
74 xml_nodeName => "AuditDetails",
75 xml_required => 0,
76 predicate => "has_audit",
77 ;
78  
79 with 'XML::SRS::Audit';
80  
81 sub root_element {'HandleUpdate'}
82 with 'XML::SRS::Action';
83  
84 1;
« SRS/Handle/Create.pm ↑ Summary SRS/Registrar.pm »