| 1 | package WebService::Bitly::Result::Expand; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 1 | ▶ | use base qw(WebService::Bitly::Result); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 1 | ▶ | use WebService::Bitly::Util; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 1 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 12 | 1 | my ($class, $result_expand) = @_; | |||||||||
| 13 | 1 | my $self = $class->SUPER::new($result_expand); | |||||||||
| 14 | |||||||||||
| 15 | $self->{results} | ||||||||||
| 16 | 1 | = WebService::Bitly::Util->make_entries($self->data->{expand}); | |||||||||
| 17 | |||||||||||
| 18 | 1 | return $self; | |||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | 1 | ▶ | sub results { | ||||||||
|
Subroutine
results: called CC=2 SCAR=7.2
Pod
undocumented
| |||||||||||
| 22 | 1 | my $results = shift->{results}; | |||||||||
| 23 | 1 | ▶ | return wantarray ? @$results : $results; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 1 | 1; | |||||||||