File Coverage

blib/lib/XML/RAI/Image.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             # Copyright (c) 2004-2009 Timothy Appnel
2             # http://appnel.com/
3             # This code is released under the Artistic License.
4             #
5             # XML::RAI::Image - An interface to the image elements of a RSS feed.
6             #
7              
8             package XML::RAI::Image;
9              
10 1     1   11232 use strict;
  1         3  
  1         43  
11              
12 1     1   6 use vars qw(@ISA $XMap);
  1         3  
  1         122  
13             @ISA = qw( XML::RAI::Object );
14              
15             $XMap = {
16             description => [
17             '/channel/image[0]/description',
18             '/channel/image[0]/rss091:description'
19             ],
20             height => ['/channel/image[0]/height', '/channel/image[0]/rss091:height'],
21             'link' => ['/channel/image[0]/link'],
22             title => ['/channel/image[0]/title', '/channel/image[0]/dc:title'],
23             url => [
24             '/channel/image[0]/@rdf:resource', '/channel/image[0]/@rdf:about',
25             '/channel/image[0]/url'
26             ],
27             width => ['/channel/image[0]/width', '/channel/image[0]/rss091:width']
28             };
29              
30             1;
31              
32             __END__