line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::STF::Object; |
2
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
38
|
|
3
|
1
|
|
|
1
|
|
3102
|
use URI; |
|
1
|
|
|
|
|
6317
|
|
|
1
|
|
|
|
|
37
|
|
4
|
|
|
|
|
|
|
use Class::Accessor::Lite |
5
|
1
|
|
|
|
|
11
|
new => 1, |
6
|
|
|
|
|
|
|
rw => [ qw( |
7
|
|
|
|
|
|
|
url |
8
|
|
|
|
|
|
|
content |
9
|
|
|
|
|
|
|
) ] |
10
|
1
|
|
|
1
|
|
12
|
; |
|
1
|
|
|
|
|
2
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub bucket_name { |
13
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
14
|
0
|
0
|
|
|
|
|
if (URI->new($self->url)->path =~ m{^/([^/]+)}) { |
15
|
0
|
|
|
|
|
|
return $1; |
16
|
|
|
|
|
|
|
} |
17
|
0
|
|
|
|
|
|
return (); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub key { |
21
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
22
|
0
|
0
|
|
|
|
|
if (URI->new($self->url)->path =~ m{^/[^/]+/(.*)$}) { |
23
|
0
|
|
|
|
|
|
return $1; |
24
|
|
|
|
|
|
|
} |
25
|
0
|
|
|
|
|
|
return (); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |