YR/Day.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« YR/DataPoint.pm ↑ Summary YR/Model.pm »
1 package Weather::YR::Day;
2 3 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
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 3 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 3 has 'datapoints' => (
35 isa => 'ArrayRef[Weather::YR::DataPoint]',
36 is => 'ro',
37 required => 1,
38 );
39  
40 #
41 # The End
42 #
43 3 __PACKAGE__->meta->make_immutable;
44  
45 3 1;
« YR/DataPoint.pm ↑ Summary YR/Model.pm »