YR/DataPoint.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 13 / 13 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« YR.pm ↑ Summary YR/Day.pm »
1 package Weather::YR::DataPoint;
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::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 3 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 3 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 3 has 'type' => (
46 isa => 'Str',
47 is => 'ro',
48 required => 1,
49 );
50  
51 #
52 # The End
53 #
54 3 __PACKAGE__->meta->make_immutable;
55  
56 3 1;
« YR.pm ↑ Summary YR/Day.pm »