blib/lib/Net/Braintree/DisbursementDetails.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 3 | 9 | 33.3 |
branch | 0 | 2 | 0.0 |
condition | n/a | ||
subroutine | 1 | 3 | 33.3 |
pod | 0 | 2 | 0.0 |
total | 4 | 16 | 25.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Net::Braintree::DisbursementDetails; | ||||||
2 | |||||||
3 | 1 | 1 | 4 | use Moose; | |||
1 | 1 | ||||||
1 | 6 | ||||||
4 | extends 'Net::Braintree::ResultObject'; | ||||||
5 | |||||||
6 | my $meta = __PACKAGE__->meta; | ||||||
7 | |||||||
8 | sub BUILD { | ||||||
9 | 0 | 0 | 0 | my ($self, $attributes) = @_; | |||
10 | 0 | $self->set_attributes_from_hash($self, $attributes); | |||||
11 | } | ||||||
12 | |||||||
13 | sub is_valid { | ||||||
14 | 0 | 0 | 0 | my $self = shift; | |||
15 | 0 | 0 | if (defined($self->disbursement_date)) { | ||||
16 | 0 | 1; | |||||
17 | } else { | ||||||
18 | 0 | 0; | |||||
19 | } | ||||||
20 | }; | ||||||
21 | |||||||
22 | 1; |