File Coverage

blib/lib/WebService/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 WebService::Braintree::DisbursementDetails;
2             $WebService::Braintree::DisbursementDetails::VERSION = '0.93';
3              
4 1     1   10 use Moose;
  1         4  
  1         9  
5             extends 'WebService::Braintree::ResultObject';
6              
7             sub BUILD {
8 0     0 0   my ($self, $attributes) = @_;
9 0           $self->set_attributes_from_hash($self, $attributes);
10             }
11              
12             sub is_valid {
13 0     0 0   my $self = shift;
14 0 0         if (defined($self->disbursement_date)) {
15 0           1;
16             } else {
17 0           0;
18             }
19             };
20              
21             __PACKAGE__->meta->make_immutable;
22             1;
23