File Coverage

lib/Amazon/SimpleDB/GetAttributesResponse.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             package Amazon::SimpleDB::GetAttributesResponse;
2 1     1   1477 use strict;
  1         2  
  1         34  
3 1     1   5 use warnings;
  1         1  
  1         27  
4              
5 1     1   5 use base 'Amazon::SimpleDB::Response';
  1         2  
  1         77  
6              
7             sub results {
8             my $self = shift;
9             my $results =
10             $self->{content}->{GetAttributesResponse}{GetAttributesResult}{Attribute};
11             my $attr = {};
12             for my $a (@$results) {
13             $attr->{$a->{'Name'}} ||= [];
14             push @{$attr->{$a->{'Name'}}}, $a->{'Value'};
15             }
16             return $attr;
17             }
18              
19             1;
20              
21             __END__