File Coverage

blib/lib/XML/SRS/Server.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::Server;
3             BEGIN {
4 1     1   1947 $XML::SRS::Server::VERSION = '0.09';
5             }
6              
7 1     1   435 use Moose;
  0            
  0            
8             use PRANG::Graph;
9             use XML::SRS::Types;
10              
11             has_attr 'fqdn' =>
12             is => "ro",
13             isa => "XML::SRS::DomainName",
14             xml_name => "FQDN",
15             ;
16              
17             has_attr 'ipv4_addr' =>
18             is => "ro",
19             isa => "XML::SRS::IPv4",
20             xml_name => "IP4Addr",
21             xml_required => 0,
22             ;
23              
24             has_attr 'ipv6_addr' =>
25             is => "ro",
26             isa => "XML::SRS::IPv6",
27             xml_name => "IP6Addr",
28             xml_required => 0,
29             ;
30              
31             with 'XML::SRS::Node';
32              
33             1;
34              
35             __END__
36              
37             =head1 NAME
38              
39             XML::SRS::Server - Class representing an SRS name server
40              
41             =head1 DESCRIPTION
42              
43             This class represents an SRS name server
44              
45             =head1 ATTRIBUTES
46              
47             Each attribute of this class has an accessor/mutator of the same name as
48             the attribute. Additionally, they can be passed as parameters to the
49             constructor.
50              
51             =head2 fqdn
52              
53             Must be of type XML::SRS::DomainName. Maps to the XML attribute 'FQDN'
54              
55             =head2 ipv6_addr
56              
57             Must be of type XML::SRS::IPv6. Maps to the XML attribute 'IP6Addr'
58              
59             =head2 ipv4_addr
60              
61             Must be of type XML::SRS::IPv4. Maps to the XML attribute 'IP4Addr'
62              
63             =head1 METHODS
64              
65             =head2 new(%params)
66              
67             Construct a new XML::SRS::Request object. %params specifies the initial
68             values of the attributes.
69              
70             =head1 COMPOSED OF
71              
72             L<XML::SRS::Node>