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 | 74 | use strict; | |||
11 | 19 | ||||||
11 | 448 | ||||||
4 | 11 | 11 | 61 | use warnings; | |||
11 | 19 | ||||||
11 | 1857 | ||||||
5 | |||||||
6 | sub new{ | ||||||
7 | 64 | 64 | 0 | 122 | my $self = shift; | ||
8 | 64 | 171 | my %p = @_; | ||||
9 | |||||||
10 | 64 | 365 | bless{%p}, $self; | ||||
11 | } | ||||||
12 | |||||||
13 | our $AUTOLOAD; | ||||||
14 | sub AUTOLOAD { | ||||||
15 | 179 | 179 | 23787 | my $self = shift; | |||
16 | |||||||
17 | 179 | 1247 | my ($key) = $AUTOLOAD =~ /([^:]*$)/; | ||||
18 | 179 | 2307 | return $self->{$key}; | ||||
19 | } | ||||||
20 | |||||||
21 | |||||||
22 | 1; |