| 1 | package XML::NewsML_G2::News_Item_Video; | ||
| 2 | |||
| 3 | 20 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 20 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 20 | extends 'XML::NewsML_G2::News_Item'; | |
| 7 | |||
| 8 | 20 | has '+nature', default => 'video'; | |
| 9 | 20 | has '+remotes', isa => 'HashRef[XML::NewsML_G2::Video]'; | |
| 10 | has 'icon', | ||
| 11 | isa => 'ArrayRef[XML::NewsML_G2::Icon]', | ||
| 12 | is => 'rw', | ||
| 13 | 2 | ▶ | default => sub { [] }, |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 14 | 20 | traits => ['Array'], | |
| 15 | handles => { add_icon => 'push', has_icon => 'count' }; | ||
| 16 | |||
| 17 | 20 | __PACKAGE__->meta->make_immutable; | |
| 18 | |||
| 19 | 20 | 1; | |
| 20 | __END__ | ||