File Coverage

blib/lib/Weather/YR/DataPoint.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Weather::YR::DataPoint;
2 3     3   2362 use Moose;
  3         7  
  3         18  
3 3     3   19033 use namespace::autoclean;
  3         8  
  3         19  
4              
5             =head1 NAME
6              
7             Weather::YR::DataPoint - Base class for data points.
8              
9             =head1 DESCRIPTION
10              
11             Don't use this class directly. It is used as a "helper class" for other classes.
12              
13             =head1 METHODS
14              
15             =head2 from
16              
17             Returns this data point's "from" date as a DateTime object.
18              
19             =cut
20              
21             has 'from' => (
22             isa => 'DateTime',
23             is => 'ro',
24             required => 1,
25             );
26              
27             =head2 to
28              
29             Returns this data point's "to" date as a DateTime object.
30              
31             =cut
32              
33             has 'to' => (
34             isa => 'DateTime',
35             is => 'ro',
36             required => 1,
37             );
38              
39             =head2 type
40              
41             Returns this data point's "type" value.
42              
43             =cut
44              
45             has 'type' => (
46             isa => 'Str',
47             is => 'ro',
48             required => 1,
49             );
50              
51             #
52             # The End
53             #
54             __PACKAGE__->meta->make_immutable;
55              
56             1;