| 1 | package Weather::YR::Model::Precipitation::Symbol; | ||
| 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 | 3 | ▶ | use Weather::YR::Lang::Symbol; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 3 | has 'id' => ( isa => 'Str', is => 'rw', required => 1 ); | |
| 10 | 3 | has 'number' => ( isa => 'Int', is => 'rw', required => 1 ); | |
| 11 | |||
| 12 | 3 | has 'text' => ( isa => 'Str', is => 'ro', lazy_build => 1 ); | |
| 13 | |||
| 14 | 0 | ▶ | sub _build_text { |
|
Subroutine
_build_text: not called CC=1 SCAR=6.9
| |||
| 15 | 0 | my $self = shift; | |
| 16 | |||
| 17 | 0 | return Weather::YR::Lang::Symbol->new( | |
| 18 | number => $self->number, | ||
| 19 | lang => $self->lang, | ||
| 20 | )->text; | ||
| 21 | } | ||
| 22 | |||
| 23 | 3 | __PACKAGE__->meta->make_immutable; | |
| 24 | |||
| 25 | 3 | 1; | |