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 | 11 | 11 | 68 | use strict; | |||
11 | 21 | ||||||
11 | 425 | ||||||
4 | 11 | 11 | 56 | use warnings; | |||
11 | 21 | ||||||
11 | 1892 | ||||||
5 | |||||||
6 | sub new{ | ||||||
7 | 64 | 64 | 0 | 130 | my $self = shift; | ||
8 | 64 | 177 | my %p = @_; | ||||
9 | |||||||
10 | 64 | 341 | bless{%p}, $self; | ||||
11 | } | ||||||
12 | |||||||
13 | our $AUTOLOAD; | ||||||
14 | sub AUTOLOAD { | ||||||
15 | 179 | 179 | 21689 | my $self = shift; | |||
16 | |||||||
17 | 179 | 1267 | my ($key) = $AUTOLOAD =~ /([^:]*$)/; | ||||
18 | 179 | 2254 | return $self->{$key}; | ||||
19 | } | ||||||
20 | |||||||
21 | |||||||
22 | 1; |