| 1 | package Net::STF::Object; | ||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use URI; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | use Class::Accessor::Lite | ||||||||||
| 5 | 1 | ▶ | new => 1, | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | rw => [ qw( | ||||||||||
| 7 | url | ||||||||||
| 8 | content | ||||||||||
| 9 | ) ] | ||||||||||
| 10 | 1 | ; | |||||||||
| 11 | |||||||||||
| 12 | 0 | ▶ | sub bucket_name { | ||||||||
|
Subroutine
bucket_name: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 13 | 0 | my $self = shift; | |||||||||
| 14 | 0 | ▶ | if (URI->new($self->url)->path =~ m{^/([^/]+)}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 0 | return $1; | |||||||||
| 16 | } | ||||||||||
| 17 | 0 | return (); | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 0 | ▶ | sub key { | ||||||||
|
Subroutine
key: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 21 | 0 | my $self = shift; | |||||||||
| 22 | 0 | ▶ | if (URI->new($self->url)->path =~ m{^/[^/]+/(.*)$}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | 0 | return $1; | |||||||||
| 24 | } | ||||||||||
| 25 | 0 | return (); | |||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | 1 | 1; | |||||||||
| 29 | |||||||||||
| 30 | __END__ | ||||||||||