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 0 ▶sub create {
Subroutine create: not called CC=1 SCAR=6.9
Pod undocumented
8 0 my ($class, $params) = @_;
9 0 $class->gateway->payment_method->create($params);
10 }
11  
12 0 ▶sub update {
Subroutine update: not called CC=1 SCAR=6.9
Pod undocumented
13 0 my ($class, $token, $params) = @_;
14 0 $class->gateway->payment_method->update($token, $params);
15 }
16  
17 0 ▶sub delete {
Subroutine delete: not called CC=1 SCAR=6.9
Pod undocumented
18 0 my ($class, $token) = @_;
19 0 $class->gateway->payment_method->delete($token);
20 }
21  
22 0 ▶sub find {
Subroutine find: not called CC=1 SCAR=6.9
Pod undocumented
23 0 my ($class, $token) = @_;
24 0 $class->gateway->payment_method->find($token);
25 }
26  
27 0 ▶sub gateway {
Subroutine gateway: not called CC=1 SCAR=6.9
Pod undocumented
28 0 return Net::Braintree->configuration->gateway;
29 }
30  
31 1 1;
« Braintree/CreditCard.pm ↑ Summary Braintree/PayPalAccount.pm »