File Coverage

blib/lib/Net/Payjp/Object.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 16 17 94.1


line stmt bran cond sub pod time code
1             package Net::Payjp::Object;
2              
3 15     15   98 use strict;
  15         36  
  15         584  
4 15     15   70 use warnings;
  15         29  
  15         3117  
5              
6             sub new{
7 76     76 0 182 my $self = shift;
8 76         237 my %p = @_;
9            
10 76         467 bless{%p}, $self;
11             }
12              
13             our $AUTOLOAD;
14             sub AUTOLOAD {
15 214     214   45768 my $self = shift;
16              
17 214         2035 my ($key) = $AUTOLOAD =~ /([^:]*$)/;
18 214         3036 return $self->{$key};
19             }
20              
21              
22             1;