line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Payjp::Token; |
2
|
|
|
|
|
|
|
|
3
|
11
|
|
|
11
|
|
73
|
use strict; |
|
11
|
|
|
|
|
25
|
|
|
11
|
|
|
|
|
309
|
|
4
|
11
|
|
|
11
|
|
52
|
use warnings; |
|
11
|
|
|
|
|
20
|
|
|
11
|
|
|
|
|
267
|
|
5
|
|
|
|
|
|
|
|
6
|
11
|
|
|
11
|
|
111
|
use base 'Net::Payjp'; |
|
11
|
|
|
|
|
20
|
|
|
11
|
|
|
|
|
2103
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub create{ |
9
|
1
|
|
|
1
|
1
|
9
|
my $self = shift; |
10
|
1
|
|
|
|
|
3
|
my %p = @_; |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
|
|
7
|
$self->_request(method => 'POST', url => $self->_class_url, param => \%p); |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub retrieve{ |
16
|
1
|
|
|
1
|
1
|
2
|
my $self = shift; |
17
|
1
|
|
|
|
|
3
|
my $id = shift; |
18
|
1
|
50
|
|
|
|
4
|
$self->id($id) if $id; |
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
|
|
15
|
$self->_request(method => 'GET', url => $self->_instance_url); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |