File Coverage

blib/lib/Net/Amazon/Response/ISBN.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             ######################################################################
2             package Net::Amazon::Response::ISBN;
3             ######################################################################
4 1     1   1341 use warnings;
  1         2  
  1         38  
5 1     1   7 use strict;
  1         2  
  1         36  
6 1     1   6 use base qw(Net::Amazon::Response);
  1         3  
  1         1641  
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;