File Coverage

blib/lib/XML/SRS/ACL.pm
Criterion Covered Total %
statement 1 3 33.3
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 2 4 50.0


line stmt bran cond sub pod time code
1              
2             package XML::SRS::ACL;
3              
4 1     1   1606 use Moose;
  0            
  0            
5             use PRANG::Graph;
6             use XML::SRS::Types;
7              
8             has_attr 'Resource' =>
9             is => "ro",
10             isa => "Str",
11             required => 1,
12             ;
13              
14             has_attr 'List' =>
15             is => "ro",
16             isa => "Str",
17             required => 1,
18             ;
19              
20             has_attr 'Size' =>
21             is => "ro",
22             isa => "XML::SRS::Number",
23             xml_required => 0,
24             ;
25              
26             has_attr 'SizeChange' =>
27             is => "ro",
28             isa => "XML::SRS::Number",
29             xml_required => 0,
30             ;
31              
32             sub BUILD {
33             my $self = shift;
34             defined($self->Size//$self->SizeChange)
35             or die "Must specify either Size or SizeChange";
36             }
37              
38             has_attr 'Type' =>
39             is => "ro",
40             isa => "Str",
41             xml_required => 0,
42             ;
43              
44             use XML::SRS::ACL::Entry;
45             has_element 'entries' =>
46             is => "ro",
47             isa => "ArrayRef[XML::SRS::ACL::Entry]",
48             xml_nodeName => "AccessControlListEntry",
49             ;
50              
51             sub root_element {
52             "AccessControlList";
53             }
54              
55             with 'XML::SRS::ActionResponse';
56              
57             1;