| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package WebService::Bitly::Result::Countries; | 
| 2 |  |  |  |  |  |  |  | 
| 3 | 1 |  |  | 1 |  | 9 | use warnings; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 45 |  | 
| 4 | 1 |  |  | 1 |  | 9 | use strict; | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 40 |  | 
| 5 | 1 |  |  | 1 |  | 6 | use Carp; | 
|  | 1 |  |  |  |  | 9 |  | 
|  | 1 |  |  |  |  | 92 |  | 
| 6 |  |  |  |  |  |  |  | 
| 7 | 1 |  |  | 1 |  | 6 | use base qw(WebService::Bitly::Result); | 
|  | 1 |  |  |  |  | 4 |  | 
|  | 1 |  |  |  |  | 125 |  | 
| 8 |  |  |  |  |  |  |  | 
| 9 | 1 |  |  | 1 |  | 7 | use WebService::Bitly::Util; | 
|  | 1 |  |  |  |  | 3 |  | 
|  | 1 |  |  |  |  | 11 |  | 
| 10 |  |  |  |  |  |  |  | 
| 11 |  |  |  |  |  |  | sub new { | 
| 12 | 1 |  |  | 1 | 1 | 3 | my ($class, $result_countries) = @_; | 
| 13 | 1 |  |  |  |  | 10 | my $self = $class->SUPER::new($result_countries); | 
| 14 |  |  |  |  |  |  |  | 
| 15 | 1 |  |  |  |  | 24 | $self->{countries} | 
| 16 |  |  |  |  |  |  | = WebService::Bitly::Util->make_entries($self->data->{countries}); | 
| 17 |  |  |  |  |  |  |  | 
| 18 | 1 |  |  |  |  | 20 | return $self; | 
| 19 |  |  |  |  |  |  | } | 
| 20 |  |  |  |  |  |  |  | 
| 21 |  |  |  |  |  |  | sub countries { | 
| 22 | 1 |  |  | 1 | 0 | 679 | my $countries = shift->{countries}; | 
| 23 | 1 | 50 |  |  |  | 11 | return wantarray ? @$countries : $countries; | 
| 24 |  |  |  |  |  |  | } | 
| 25 |  |  |  |  |  |  |  | 
| 26 |  |  |  |  |  |  | sub created_by { | 
| 27 | 1 |  |  | 1 | 0 | 6 | return shift->data->{created_by}; | 
| 28 |  |  |  |  |  |  | } | 
| 29 |  |  |  |  |  |  |  | 
| 30 |  |  |  |  |  |  | sub global_hash { | 
| 31 | 1 |  |  | 1 | 0 | 822 | return shift->data->{global_hash}; | 
| 32 |  |  |  |  |  |  | } | 
| 33 |  |  |  |  |  |  |  | 
| 34 |  |  |  |  |  |  | sub short_url { | 
| 35 | 1 |  |  | 1 | 0 | 504 | return shift->data->{short_url}; | 
| 36 |  |  |  |  |  |  | } | 
| 37 |  |  |  |  |  |  |  | 
| 38 |  |  |  |  |  |  | sub user_hash { | 
| 39 | 1 |  |  | 1 | 0 | 534 | return shift->data->{user_hash}; | 
| 40 |  |  |  |  |  |  | } | 
| 41 |  |  |  |  |  |  |  | 
| 42 |  |  |  |  |  |  | 1; |