File Coverage

blib/lib/XML/NewsML_G2/Role/RemoteVisual.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package XML::NewsML_G2::Role::RemoteVisual;
2              
3 18     18   9379 use XML::NewsML_G2::Types;
  18         45  
  18         510  
4              
5 18     18   99 use Moose::Role;
  18         36  
  18         149  
6 18     18   88183 use namespace::autoclean;
  18         80  
  18         117  
7              
8             with 'XML::NewsML_G2::Role::Remote';
9              
10             has 'rendition', isa => 'Str', is => 'rw';
11             has 'width', isa => 'Int', is => 'rw';
12             has 'height', isa => 'Int', is => 'rw';
13              
14             1;
15             __END__
16              
17             =head1 NAME
18              
19             XML::NewsML_G2::Remote - Used by Picture, Graphics, Video
20              
21             =head1 SYNOPSIS
22              
23             my $pic = XML::NewsML_G2::Video->new
24             (size => 2231259,
25             width => 1280,
26             height => 720,
27             duration => 220,
28             );
29              
30             =head1 ATTRIBUTES
31              
32             =over 4
33              
34             =item size
35              
36             The size in bytes of the video file
37              
38             =item width
39              
40             The width in pixel of the video
41              
42             =item height
43              
44             The height in pixel of the video
45              
46             =item mimetype
47              
48             The MIME type of the video file (e.g. image/jpg)
49              
50             =back
51              
52             =head1 AUTHOR
53              
54             Mario Paumann C<< <mario.paumann@apa.at> >>
55              
56             =head1 LICENCE AND COPYRIGHT
57              
58             Copyright (c) 2013-2014, APA-IT. All rights reserved.
59              
60             See L<XML::NewsML_G2> for the license.