File Coverage

blib/lib/WebService/LiveJournal/Thingie.pm
Criterion Covered Total %
statement 9 14 64.2
branch 0 2 0.0
condition n/a
subroutine 3 6 50.0
pod 0 2 0.0
total 12 24 50.0


line stmt bran cond sub pod time code
1             package WebService::LiveJournal::Thingie;
2              
3 12     12   39 use strict;
  12         13  
  12         252  
4 12     12   30 use warnings;
  12         11  
  12         719  
5 12     12   38 use overload '""' => sub { $_[0]->as_string };
  12     0   12  
  12         64  
  0            
6              
7             # ABSTRACT: base class for WebService::LiveJournal classes
8             our $VERSION = '0.08'; # VERSION
9              
10             sub client
11             {
12 0     0 0   my($self, $new_value) = @_;
13 0 0         $self->{client} = $new_value if defined $new_value;
14 0           $self->{client};
15             }
16              
17 0     0 0   sub error { shift->client->error }
18              
19             1;
20              
21             __END__