Media/Thumbnail.pm

filter: Statementstmt 92.8% 13 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 2 / 2 totaltotal 90.4% 19 / 21 CC 1 SCAR 1.8
CC
1
Cov
93%
element_name
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Media/Content.pm ↑ Summary Media.pm »
1 package XML::Atom::Ext::Media::Thumbnail;
2 2 our $VERSION = '0.092840';
3  
4  
5 #ABSTRACT: Represents <media:thumbnail> elements
6  
7 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 2 ▶use base qw( XML::Atom::Base );
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12  
13 2 __PACKAGE__->mk_attr_accessors(qw/url height width time/);
14  
15  
16 2 ▶sub element_ns {
Subroutine element_ns: called CC=1 SCAR=0.0
Pod documented
17 2 return XML::Atom::Ext::Media->element_ns;
18 }
19  
20  
21 0 ▶sub element_name {
Subroutine element_name: not called CC=1 SCAR=6.9
Pod documented
22 0 return 'thumbnail';
23 }
24  
25 2 1;
26  
27  
28  
29 =pod
30  
31 =head1 NAME
32  
33 XML::Atom::Ext::Media::Thumbnail - Represents <media:thumbnail> elements
34  
35 =head1 VERSION
36  
37 version 0.092840
38  
39 =head1 ATTRIBUTES
40  
41 =head2 url
42  
43 =head2 height
44  
45 =head2 width
46  
47 =head2 time
48  
49  
50  
51 =head2 element_ns
52  
53 Returns our L<XML::Atom::Namespace> object, akin to L<XML::Atom::Ext::Media/element_ns>
54  
55  
56  
57 =head2 element_name
58  
59 Implemented in the subclasses.
60  
61 Returns the name of the namespaced element we represent, like group for <media:group>
62  
63  
64  
65 =head1 AUTHOR
66  
67 Andreas Marienborg <andremar@cpan.org>
68  
69 =head1 COPYRIGHT AND LICENSE
70  
71 This software is copyright (c) 2009 by Andreas Marienborg.
72  
73 This is free software; you can redistribute it and/or modify it under
74 the same terms as the Perl 5 programming language system itself.
75  
76 =cut
77  
78  
79  
80 __END__
« Media/Content.pm ↑ Summary Media.pm »