File Coverage

blib/lib/XML/EPP/Contact/PostalInfo.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             package XML::EPP::Contact::PostalInfo;
2              
3 1     1   2419 use Moose;
  0            
  0            
4             use PRANG::Graph;
5             use Moose::Util::TypeConstraints;
6              
7             with 'XML::EPP::Contact::Node';
8              
9             my $PKG = __PACKAGE__;
10              
11             has_element 'name' =>
12             is => 'ro',
13             isa => 'XML::EPP::Contact::postalLineType',
14             ;
15              
16             has_element 'org' =>
17             is => 'ro',
18             isa => 'XML::EPP::Contact::optPostalLineType',
19             required => 0,
20             ;
21              
22             use XML::EPP::Contact::Addr;
23             has_element 'addr' =>
24             is => 'ro',
25             isa => 'XML::EPP::Contact::Addr',
26             required => 1,
27             ;
28              
29             has_attr 'type' =>
30             is => 'ro',
31             isa => 'XML::EPP::Contact::postalInfoEnumType',
32             ;
33              
34             1;
35              
36             =head1 NAME
37              
38             ? - implement ?
39              
40             =head1 SYNOPSIS
41              
42             TODO
43              
44             =head1 DESCRIPTION
45              
46             ...
47              
48             =head2 XML Schema Definition
49              
50             <complexType name="postalInfoType">
51             <sequence>
52             <element name="name" type="contact:postalLineType"/>
53             <element name="org" type="contact:optPostalLineType"
54             minOccurs="0"/>
55             <element name="addr" type="contact:addrType"/>
56             </sequence>
57             <attribute name="type" type="contact:postalInfoEnumType"
58             use="required"/>
59             </complexType>
60              
61             =cut