File Coverage

blib/lib/Net/Braintree/PaymentMethod.pm
Criterion Covered Total %
statement 3 12 25.0
branch n/a
condition n/a
subroutine 1 6 16.6
pod 0 5 0.0
total 4 23 17.3


line stmt bran cond sub pod time code
1             package Net::Braintree::PaymentMethod;
2 1     1   388 use Moose;
  1         1  
  1         4  
3             extends 'Net::Braintree::ResultObject';
4              
5             has token => ( is => 'rw' );
6              
7             sub create {
8 0     0 0   my ($class, $params) = @_;
9 0           $class->gateway->payment_method->create($params);
10             }
11              
12             sub update {
13 0     0 0   my ($class, $token, $params) = @_;
14 0           $class->gateway->payment_method->update($token, $params);
15             }
16              
17             sub delete {
18 0     0 0   my ($class, $token) = @_;
19 0           $class->gateway->payment_method->delete($token);
20             }
21              
22             sub find {
23 0     0 0   my ($class, $token) = @_;
24 0           $class->gateway->payment_method->find($token);
25             }
26              
27             sub gateway {
28 0     0 0   return Net::Braintree->configuration->gateway;
29             }
30              
31             1;