File Coverage

blib/lib/WebService/Braintree/MerchantAccount/IndividualDetails.pm
Criterion Covered Total %
statement 6 10 60.0
branch 0 2 0.0
condition n/a
subroutine 2 3 66.6
pod 0 1 0.0
total 8 16 50.0


line stmt bran cond sub pod time code
1             package WebService::Braintree::MerchantAccount::IndividualDetails;
2             $WebService::Braintree::MerchantAccount::IndividualDetails::VERSION = '0.93';
3 1     1   431 use WebService::Braintree::MerchantAccount::AddressDetails;
  1         6  
  1         52  
4              
5 1     1   13 use Moose;
  1         3  
  1         10  
6             extends "WebService::Braintree::ResultObject";
7              
8             has address_details => (is => 'rw');
9              
10             sub BUILD {
11 0     0 0   my ($self, $attributes) = @_;
12 0 0         $self->address_details(WebService::Braintree::MerchantAccount::AddressDetails->new($attributes->{address})) if ref($attributes->{address}) eq 'HASH';
13 0           delete($attributes->{address});
14 0           $self->set_attributes_from_hash($self, $attributes);
15             }
16              
17             __PACKAGE__->meta->make_immutable;
18             1;