Braintree/Address.pm

filter: Statementstmt 27.7% 5 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 12.5% 1 / 8 Podpod 0.0% 0 / 7 totaltotal 18.1% 6 / 33 CC 1 SCAR 6.3
CC
1
Cov
28%
BUILD
2.0
create
2.0
find
2.0
CRAP 1.9
« Braintree/TransparentRedirect.pm ↑ Summary Braintree/CreditCard.pm »
1 package Net::Braintree::Address;
2 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 extends 'Net::Braintree::ResultObject';
4  
5 sub BUILD {
6 0 ▶ my ($self, $attributes) = @_;
Subroutine BUILD: not called CC=1 SCAR=6.9
Pod undocumented
7 0 $self->set_attributes_from_hash($self, $attributes);
8 }
9  
10 sub create {
11 0 ▶ my($class, $params) = @_;
Subroutine create: not called CC=1 SCAR=6.9
Pod undocumented
12 0 $class->gateway->address->create($params);
13 }
14  
15 sub find {
16 0 ▶ my ($class, $customer_id, $address_id) = @_;
Subroutine find: not called CC=1 SCAR=6.9
Pod undocumented
17 0 $class->gateway->address->find($customer_id, $address_id);
18 }
19  
20 sub update {
21 0 ▶ my ($class, $customer_id, $address_id, $params) = @_;
Subroutine update: not called CC=1 SCAR=6.9
Pod undocumented
22 0 $class->gateway->address->update($customer_id, $address_id, $params);
23 }
24  
25 sub delete {
26 0 ▶ my ($class, $customer_id, $address_id) = @_;
Subroutine delete: not called CC=1 SCAR=6.9
Pod undocumented
27 0 $class->gateway->address->delete($customer_id, $address_id);
28 }
29  
30 sub gateway {
31 0 ▶ return Net::Braintree->configuration->gateway;
Subroutine gateway: not called CC=1 SCAR=6.9
Pod undocumented
32 }
33  
34 sub full_name {
35 0 ▶ my $self = shift;
Subroutine full_name: not called CC=1 SCAR=6.9
Pod undocumented
36 0 return $self->first_name . " " . $self->last_name
37 }
38  
39 1 1;
« Braintree/TransparentRedirect.pm ↑ Summary Braintree/CreditCard.pm »