| 1 | package XML::NewsML_G2::Icon; | ||
| 2 | |||
| 3 | 19 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 19 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 19 | has 'rendition', isa => 'Str', is => 'rw', required => 1; | |
| 7 | 19 | has 'href', isa => 'Str', is => 'rw', required => 1; | |
| 8 | 19 | has 'width', isa => 'Int', is => 'rw'; | |
| 9 | 19 | has 'height', isa => 'Int', is => 'rw'; | |
| 10 | |||
| 11 | 19 | __PACKAGE__->meta->make_immutable; | |
| 12 | |||
| 13 | 19 | 1; | |
| 14 | __END__ | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | XML::NewsML_G2::Icon - a preview for a video, can be an image or a video | ||
| 19 | |||
| 20 | =head1 SYNOPSIS | ||
| 21 | |||
| 22 | my $org = XML::NewsML_G2::Icon->new | ||
| 23 | (rendition => 'Thumbnail', href => 'file:///tmp/123.jpg'); | ||
| 24 | |||
| 25 | =head1 ATTRIBUTES | ||
| 26 | |||
| 27 | =over 4 | ||
| 28 | |||
| 29 | =item rendition | ||
| 30 | |||
| 31 | size of the picture/video | ||
| 32 | |||
| 33 | =item href | ||
| 34 | |||
| 35 | location of the picture/video | ||
| 36 | |||
| 37 | =item width | ||
| 38 | |||
| 39 | width of the picture/video | ||
| 40 | |||
| 41 | =item height | ||
| 42 | |||
| 43 | height of the picture/video | ||
| 44 | |||
| 45 | =back | ||
| 46 | |||
| 47 | =head1 AUTHOR | ||
| 48 | |||
| 49 | Stefan Hrdlicka C<< <stefan.hrdlicka@apa.at> >> | ||
| 50 | |||
| 51 | =head1 LICENCE AND COPYRIGHT | ||
| 52 | |||
| 53 | Copyright (c) 2013-2014, APA-IT. All rights reserved. | ||
| 54 | |||
| 55 | See L<XML::NewsML_G2> for the license. | ||