Braintree/MerchantAccount/IndividualDetails.pm

filter: Statementstmt 64.2% 9 / 14 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 1 totaltotal 55.0% 11 / 20 CC 2 SCAR 12.5
CC
2
Cov
56%
BUILD
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.5
« Braintree/MerchantAccount/BusinessDetails.pm ↑ Summary Braintree/CreditCardGateway.pm »
1 package Net::Braintree::MerchantAccount::IndividualDetails;
2 1 ▶use Net::Braintree::MerchantAccount::AddressDetails;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 extends "Net::Braintree::ResultObject";
6 1 my $meta = __PACKAGE__->meta;
7  
8 0 ▶sub BUILD {
Subroutine BUILD: not called CC=2 SCAR=17.9
Pod undocumented
9 0 my ($self, $attributes) = @_;
10  
11 0 $meta->add_attribute('address_details', is => 'rw');
12 0 ▶ $self->address_details(Net::Braintree::MerchantAccount::AddressDetails->new($attributes->{address})) if ref($attributes->{address}) eq 'HASH';
Branch: 1 branch
BranchTrueFalseTotal
if ref $attributes->{"address"} eq "HASH" 0 0 0
13 0 delete($attributes->{address});
14  
15 0 $self->set_attributes_from_hash($self, $attributes);
16 }
17  
18 1 1;
« Braintree/MerchantAccount/BusinessDetails.pm ↑ Summary Braintree/CreditCardGateway.pm »