Braintree/Disbursement.pm

filter: Statementstmt 40.0% 6 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 25.0% 1 / 4 Podpod 0.0% 0 / 2 totaltotal 33.3% 7 / 21 CC 1 SCAR 5.6
CC
1
Cov
40%
BUILD
2.0
transactions
2.0
__ANON__
2.0
CRAP 1.8
« Braintree/Subscription.pm ↑ Summary Braintree/SettlementBatchSummary.pm »
1 package Net::Braintree::Disbursement;
2  
3 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 extends "Net::Braintree::ResultObject";
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 $meta->add_attribute('merchant_account', is => 'rw');
10 0 $self->merchant_account(Net::Braintree::MerchantAccount->new($attributes->{merchant_account}));
11 0 delete($attributes->{merchant_account});
12 0 $self->set_attributes_from_hash($self, $attributes);
13 }
14  
15 0 ▶sub transactions {
Subroutine transactions: not called CC=1 SCAR=6.9
Pod undocumented
16 0 my $self = shift;
17 0 ▶ Net::Braintree::Transaction->search(sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
18 0 my $search = shift;
19 0 $search->ids->in($self->transaction_ids);
20 0 });
21 }
22  
23 1 1;
« Braintree/Subscription.pm ↑ Summary Braintree/SettlementBatchSummary.pm »