File Coverage

blib/lib/XML/EPP/Host/Address.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::Host::Address;
2 1     1   2364 use Moose;
  0            
  0            
3             use PRANG::Graph;
4             with 'XML::EPP::Host::Node';
5             has_element "value" =>
6             is => "ro",
7             isa => "XML::EPP::Host::addrStringType",
8             xml_nodeName => "",
9             coerce => 1,
10             ;
11              
12             has_attr "ip" =>
13             is => "ro",
14             isa => "XML::EPP::Host::ipType",
15             default => "v4",
16             ;
17              
18             use Moose::Util::TypeConstraints;
19             coerce __PACKAGE__
20             => from "Str",
21             => via { __PACKAGE__->new(value => $_) },
22             ;
23             coerce __PACKAGE__
24             => from "HashRef",
25             => via { __PACKAGE__->new($_) },
26             ;
27             subtype "XML::EPP::Host::addrType" => as __PACKAGE__;
28              
29             1;
30              
31             =head1 NAME
32              
33             XML::EPP::Host::Address - implement addrType
34              
35             =head1 SYNOPSIS
36              
37             TODO
38              
39             =head1 DESCRIPTION
40              
41             ...
42              
43             =head2 XML Schema Definition
44              
45             <complexType name="addrType">
46             <simpleContent>
47             <extension base="host:addrStringType">
48             <attribute name="ip" type="host:ipType"
49             default="v4"/>
50             </extension>
51             </simpleContent>
52             </complexType>
53              
54             =cut