line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
###################################################################### |
2
|
|
|
|
|
|
|
package Net::Amazon::Response::UPC; |
3
|
|
|
|
|
|
|
###################################################################### |
4
|
1
|
|
|
1
|
|
1613
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
47
|
|
5
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
39
|
|
6
|
1
|
|
|
1
|
|
7
|
use base qw(Net::Amazon::Response); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
885
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use Net::Amazon::Property; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
################################################## |
11
|
|
|
|
|
|
|
sub new { |
12
|
|
|
|
|
|
|
################################################## |
13
|
|
|
|
|
|
|
my($class, %options) = @_; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
my $self = $class->SUPER::new(%options); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
bless $self, $class; # reconsecrate |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
################################################## |
21
|
|
|
|
|
|
|
sub as_string { |
22
|
|
|
|
|
|
|
################################################## |
23
|
|
|
|
|
|
|
my($self) = @_; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
my($property) = $self->properties; |
26
|
|
|
|
|
|
|
return $property->as_string(); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
################################################## |
30
|
|
|
|
|
|
|
sub properties { |
31
|
|
|
|
|
|
|
################################################## |
32
|
|
|
|
|
|
|
my($self) = @_; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
my $property = Net::Amazon::Property::factory( |
35
|
|
|
|
|
|
|
xmlref => $self->{xmlref}->{Items}->[0]); |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
return ($property); |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |