| 1 | package WebService::Bitly::Result::Validate; | ||||||||||
| 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 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 10 | 1 | my ($class, $result_validate) = @_; | |||||||||
| 11 | 1 | my $self = $class->SUPER::new($result_validate); | |||||||||
| 12 | } | ||||||||||
| 13 | |||||||||||
| 14 | 1 | ▶ | sub is_valid { | ||||||||
|
Subroutine
is_valid: called CC=2 SCAR=7.1
Pod
undocumented
| |||||||||||
| 15 | 1 | my $self = shift; | |||||||||
| 16 | 1 | ▶ | return 0 if $self->is_error; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 1 | return $self->data->{valid}; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 1 | 1; | |||||||||