| 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
| |||||||||||
| 13 | 0 | delete($attributes->{address}); | |||||||||
| 14 | |||||||||||
| 15 | 0 | $self->set_attributes_from_hash($self, $attributes); | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 1 | 1; | |||||||||