File Coverage

blib/lib/XML/NewsML_G2/Icon.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package XML::NewsML_G2::Icon;
2              
3 18     18   135 use Moose;
  18         41  
  18         149  
4 18     18   115811 use namespace::autoclean;
  18         49  
  18         214  
5              
6             has 'rendition', isa => 'Str', is => 'rw', required => 1;
7             has 'href', isa => 'Str', is => 'rw', required => 1;
8             has 'width', isa => 'Int', is => 'rw';
9             has 'height', isa => 'Int', is => 'rw';
10              
11             __PACKAGE__->meta->make_immutable;
12              
13             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.