File Coverage

blib/lib/XML/SRS/Date/Range.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::Date::Range;
3             BEGIN {
4 1     1   2204 $XML::SRS::Date::Range::VERSION = '0.09';
5             }
6              
7 1     1   419 use Moose;
  0            
  0            
8             use PRANG::Graph;
9             use Moose::Util::TypeConstraints;
10              
11             use XML::SRS::TimeStamp;
12              
13             has_element 'begin' =>
14             is => "ro",
15             isa => "XML::SRS::TimeStamp",
16             xml_nodeName => "From",
17             xml_required => 0,
18             coerce => 1,
19             ;
20              
21             has_element 'end' =>
22             is => "ro",
23             isa => "XML::SRS::TimeStamp",
24             xml_nodeName => "To",
25             xml_required => 0,
26             coerce => 1,
27             ;
28              
29             coerce __PACKAGE__
30             => from "HashRef"
31             => via { __PACKAGE__->new(%$_); };
32              
33             with 'XML::SRS::Node';
34              
35             1;