File Coverage

blib/lib/WebService/Bitly/Entry.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition 2 2 100.0
subroutine 6 6 100.0
pod 1 2 50.0
total 24 25 96.0


line stmt bran cond sub pod time code
1             package WebService::Bitly::Entry;
2              
3 1     1   6 use warnings;
  1         1  
  1         26  
4 1     1   5 use strict;
  1         3  
  1         24  
5 1     1   5 use Carp;
  1         7  
  1         48  
6              
7 1     1   6 use base qw(Class::Accessor::Fast);
  1         2  
  1         204  
8              
9             __PACKAGE__->mk_accessors(qw(
10             error
11              
12             short_url
13             hash
14             global_hash
15             long_url
16             user_hash
17              
18             user_clicks
19             global_clicks
20              
21             url
22              
23             title
24             created_by
25              
26             referrer
27             referrer_app
28             clicks
29              
30             country
31              
32             day_start
33             ));
34              
35             sub new {
36 18     18 1 25 my ($class, $entry) = @_;
37 18         78 my $self = $class->SUPER::new($entry);
38             }
39              
40             sub is_error {
41 7   100 7 0 18029 return shift->error || 0;
42             }
43              
44             1;