blib/lib/XML/NewsML_G2/Picture.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/XML/NewsML_G2/Organisation.pm ↑ Summary blib/lib/XML/NewsML_G2/Product.pm »
1 package XML::NewsML_G2::Picture;
2  
3 20 ▶use XML::NewsML_G2::Types;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 20 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 20 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 20 with 'XML::NewsML_G2::Role::RemoteVisual';
9  
10 20 has 'orientation', isa => 'Int', is => 'rw', default => 1;
11 20 has 'colorspace', isa => 'Str', is => 'rw';
12  
13 ### XXX move to News_Item, give role, scheme
14 20 has 'altId', isa => 'Str', is => 'rw';
15  
16 20 __PACKAGE__->meta->make_immutable;
17  
18 20 1;
19 __END__
20  
21 =head1 NAME
22  
23 XML::NewsML_G2::Picture - a picture specification
24  
25 =head1 SYNOPSIS
26  
27 my $pic = XML::NewsML_G2::Picture->new
28 (rendition => 'highRes',
29 mimetype => 'image/jpg',
30 size => 21123
31 );
32  
33 =head1 ATTRIBUTES
34  
35 =over 4
36  
37 =item mimetype
38  
39 The MIME type of the picture file (e.g. image/jpg)
40  
41 =item size
42  
43 The size in bytes of the picture file
44  
45 = item width
46  
47 The width in pixel of the picture
48  
49 = item height
50  
51 The height in pixel of the picture
52  
53 = item orientation
54  
55 The picture orientation (1 is 'upright')
56  
57 = item colorspace
58  
59 The colorspace used by this picture (e.g. AdobeRGB)
60  
61 = item altId
62  
63 Alternative identifiers. Optional.
64  
65 =back
66  
67 =head1 AUTHOR
68  
69 Christian Eder C<< <christian.eder@apa.at> >>
70  
71 =head1 LICENCE AND COPYRIGHT
72  
73 Copyright (c) 2014, APA-IT. All rights reserved.
74  
75 See L<XML::NewsML_G2> for the license.
« blib/lib/XML/NewsML_G2/Organisation.pm ↑ Summary blib/lib/XML/NewsML_G2/Product.pm »