File Coverage

blib/lib/XML/SRS/Handle.pm
Criterion Covered Total %
statement 2 4 50.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 4 6 66.6


line stmt bran cond sub pod time code
1              
2             package XML::SRS::Handle;
3             BEGIN {
4 1     1   1619 $XML::SRS::Handle::VERSION = '0.09';
5             }
6 1     1   394 use Moose;
  0            
  0            
7             use PRANG::Graph;
8             use XML::SRS::Types;
9             use PRANG::XMLSchema::Types;
10              
11             extends 'XML::SRS::Contact';
12              
13             has '+handle_id' =>
14             required => 1,
15             ;
16              
17             has_attr 'registrar_id' =>
18             is => "rw",
19             isa => "XML::SRS::RegistrarId",
20             xml_required => 0,
21             xml_name => "RegistrarId",
22             ;
23              
24             has_element 'created_date' =>
25             is => 'ro',
26             isa => 'XML::SRS::TimeStamp',
27             xml_required => 0,
28             xml_nodeName => 'CreatedDate',
29              
30             #coerce => 1,
31             ;
32              
33             has_element 'audit' =>
34             is => "rw",
35             isa => "XML::SRS::AuditDetails",
36             xml_nodeName => "AuditDetails",
37             predicate => "has_audit",
38             ;
39              
40             has_element 'changed_domains' =>
41             is => "ro",
42             isa => "XML::SRS::ChangedDomains",
43             xml_nodeName => "ChangedDomains",
44             predicate => "has_changed_domains",
45             ;
46              
47             has_attr 'action_id' =>
48             is => "rw",
49             isa => "XML::SRS::UID",
50             xml_name => 'ActionId',
51             xml_required => 0,
52             ;
53              
54             sub root_element {
55             "Handle";
56             }
57             with 'XML::SRS::ActionResponse';
58              
59             1;