File Coverage

blib/lib/WebService/Bitly/Result/BitlyProDomain.pm
Criterion Covered Total %
statement 15 16 93.7
branch n/a
condition n/a
subroutine 6 7 85.7
pod 1 3 33.3
total 22 26 84.6


line stmt bran cond sub pod time code
1             package WebService::Bitly::Result::BitlyProDomain;
2              
3 1     1   7 use warnings;
  1         1  
  1         35  
4 1     1   6 use strict;
  1         2  
  1         31  
5 1     1   4 use Carp;
  1         1  
  1         72  
6              
7 1     1   5 use base qw(WebService::Bitly::Result);
  1         1  
  1         193  
8              
9             sub new {
10 1     1 1 3 my ($class, $result_bitly_pro_domain) = @_;
11 1         9 my $self = $class->SUPER::new($result_bitly_pro_domain);
12             }
13              
14             sub is_pro_domain {
15 2     2 0 685 return shift->data->{bitly_pro_domain};
16             }
17              
18             sub domain {
19 0     0 0   return shift->data->{domain};
20             }
21              
22             1;