File Coverage

lib/WebService/Braintree/Plan.pm
Criterion Covered Total %
statement 8 13 61.5
branch n/a
condition n/a
subroutine 3 6 50.0
pod 1 3 33.3
total 12 22 54.5


line stmt bran cond sub pod time code
1             package WebService::Braintree::Plan;
2             $WebService::Braintree::Plan::VERSION = '0.94';
3 20     20   380 use 5.010_001;
  20         63  
4 20     20   103 use strictures 1;
  20         124  
  20         715  
5              
6             =head1 NAME
7              
8             WebService::Braintree::Plan
9              
10             =head1 PURPOSE
11              
12             This class lists all subscription plans.
13              
14             =cut
15              
16 20     20   1863 use Moose;
  20         38  
  20         110  
17             extends "WebService::Braintree::ResultObject";
18              
19             =head2 all()
20              
21             This returns all the plans.
22              
23             =cut
24              
25             sub all {
26 0     0 1   my $class = shift;
27 0           $class->gateway->plan->all;
28             }
29              
30             sub gateway {
31 0     0 0   return WebService::Braintree->configuration->gateway;
32             }
33              
34             sub BUILD {
35 0     0 0   my ($self, $attributes) = @_;
36              
37 0           $self->set_attributes_from_hash($self, $attributes);
38             }
39              
40             __PACKAGE__->meta->make_immutable;
41              
42             1;
43             __END__
44              
45             =head1 TODO
46              
47             =over 4
48              
49             =item Need to document the keys and values that are returned
50              
51             =item Need to document the required and optional input parameters
52              
53             =item Need to document the possible errors/exceptions
54              
55             =back
56              
57             =cut