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