File Coverage

blib/lib/Weather/YR/Day.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::Day;
2 3     3   2113 use Moose;
  3         7  
  3         31  
3 3     3   20791 use namespace::autoclean;
  3         7  
  3         26  
4              
5             =head1 NAME
6              
7             Weather::YR::Day - Base class representing a day containing 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 date
16              
17             Returns this day's date as a DateTime object.
18              
19             =cut
20              
21             has 'date' => (
22             isa => 'DateTime',
23             is => 'ro',
24             required => 1,
25             );
26              
27             =head2 datapoints
28              
29             Returns an array reference of this day's data points, represented as
30             L<Weather::YR::DataPoint> objects.
31              
32             =cut
33              
34             has 'datapoints' => (
35             isa => 'ArrayRef[Weather::YR::DataPoint]',
36             is => 'ro',
37             required => 1,
38             );
39              
40             #
41             # The End
42             #
43             __PACKAGE__->meta->make_immutable;
44              
45             1;