Braintree/PayPalAccount.pm

filter: Statementstmt 50.0% 7 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 20.0% 1 / 5 Podpod 0.0% 0 / 4 totaltotal 34.7% 8 / 23 CC 1 SCAR 5.9
CC
1
Cov
50%
BUILD
2.0
find
2.0
update
2.0
CRAP 1.8
« Braintree/PaymentMethod.pm ↑ Summary Braintree/Subscription.pm »
1 package Net::Braintree::PayPalAccount;
2 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 extends 'Net::Braintree::PaymentMethod';
4  
5 1 my $meta = __PACKAGE__->meta;
6  
7 0 ▶sub BUILD {
Subroutine BUILD: not called CC=1 SCAR=6.9
Pod undocumented
8 0 my ($self, $attributes) = @_;
9 0 $self->set_attributes_from_hash($self, $attributes);
10 }
11  
12 1 has email => ( is => 'rw' );
13  
14 0 ▶sub find {
Subroutine find: not called CC=1 SCAR=6.9
Pod undocumented
15 0 my ($class, $token) = @_;
16 0 $class->gateway->paypal_account->find($token);
17 }
18  
19 0 ▶sub update {
Subroutine update: not called CC=1 SCAR=6.9
Pod undocumented
20 0 my ($class, $token, $params) = @_;
21 0 $class->gateway->paypal_account->update($token, $params);
22 }
23  
24 0 ▶sub gateway {
Subroutine gateway: not called CC=1 SCAR=6.9
Pod undocumented
25 0 Net::Braintree->configuration->gateway;
26 }
27  
28 1 1;
« Braintree/PaymentMethod.pm ↑ Summary Braintree/Subscription.pm »