| 1 | package Weather::YR::Model::Cloudiness; | ||
| 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 | 3 | extends 'Weather::YR::Model'; | |
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | Weather::YR::Model::Cloudiness | ||
| 10 | |||
| 11 | =head1 DESCRIPTION | ||
| 12 | |||
| 13 | This class represents a data point's "cloudiness". | ||
| 14 | |||
| 15 | =head1 METHODS | ||
| 16 | |||
| 17 | This class inherits all the methods from L<Weather::YR::Model> and provides the | ||
| 18 | following new methods: | ||
| 19 | |||
| 20 | =cut | ||
| 21 | |||
| 22 | 3 | has 'percent' => ( | |
| 23 | isa => 'Maybe[Num]', | ||
| 24 | is => 'ro', | ||
| 25 | required => 0, | ||
| 26 | ); | ||
| 27 | |||
| 28 | # | ||
| 29 | # The End | ||
| 30 | # | ||
| 31 | 3 | __PACKAGE__->meta->make_immutable; | |
| 32 | |||
| 33 | 3 | 1; | |