line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::Bitly::Result::Shorten; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
46
|
|
4
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
29
|
|
5
|
1
|
|
|
1
|
|
5
|
use Carp; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
74
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
4
|
use base qw(WebService::Bitly::Result); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
292
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
1
|
|
|
1
|
1
|
1
|
my ($class, $result_shorten) = @_; |
11
|
1
|
|
|
|
|
11
|
my $self = $class->SUPER::new($result_shorten); |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub short_url { |
15
|
1
|
|
|
1
|
0
|
418
|
return shift->data->{url}; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub is_new_hash { |
19
|
1
|
|
|
1
|
0
|
475
|
return shift->data->{new_hash}; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub hash { |
23
|
1
|
|
|
1
|
0
|
491
|
return shift->data->{hash}; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub global_hash { |
27
|
1
|
|
|
1
|
0
|
469
|
return shift->data->{global_hash}; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub long_url { |
31
|
1
|
|
|
1
|
0
|
467
|
return shift->data->{long_url}; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |