Braintree/PaymentMethod.pm

filter: Statementstmt 40.0% 6 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 16.6% 1 / 6 Podpod 0.0% 0 / 5 totaltotal 26.9% 7 / 26 CC 1 SCAR 6.1
CC
1
Cov
40%
create
2.0
update
2.0
delete
2.0
CRAP 1.8
« Braintree/CreditCard.pm ↑ Summary Braintree/PayPalAccount.pm »
1 package Net::Braintree::PaymentMethod;
2 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 extends 'Net::Braintree::ResultObject';
4  
5 1 has token => ( is => 'rw' );
6  
7 sub create {
8 0 ▶ my ($class, $params) = @_;
Subroutine create: not called CC=1 SCAR=6.9
Pod undocumented
9 0 $class->gateway->payment_method->create($params);
10 }
11  
12 sub update {
13 0 ▶ my ($class, $token, $params) = @_;
Subroutine update: not called CC=1 SCAR=6.9
Pod undocumented
14 0 $class->gateway->payment_method->update($token, $params);
15 }
16  
17 sub delete {
18 0 ▶ my ($class, $token) = @_;
Subroutine delete: not called CC=1 SCAR=6.9
Pod undocumented
19 0 $class->gateway->payment_method->delete($token);
20 }
21  
22 sub find {
23 0 ▶ my ($class, $token) = @_;
Subroutine find: not called CC=1 SCAR=6.9
Pod undocumented
24 0 $class->gateway->payment_method->find($token);
25 }
26  
27 sub gateway {
28 0 ▶ return Net::Braintree->configuration->gateway;
Subroutine gateway: not called CC=1 SCAR=6.9
Pod undocumented
29 }
30  
31 1 1;
« Braintree/CreditCard.pm ↑ Summary Braintree/PayPalAccount.pm »