lib/WebService/Braintree/AddOn.pm

filter: Statementstmt 85.7% 12 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 84.2% 16 / 19 CC 1 SCAR 2.2
CC
1
Cov
86%
all
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/WebService/Braintree/AdvancedSearchNodes.pm ↑ Summary lib/WebService/Braintree/Discount.pm »
1 # vim: sw=4 ts=4 ft=perl
2  
3 package WebService::Braintree::AddOn;
4 22 $WebService::Braintree::AddOn::VERSION = '1.7';
5 22 ▶use 5.010_001;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 22 ▶use strictures 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 WebService::Braintree::AddOn
11  
12 =head1 PURPOSE
13  
14 This class lists all add-ons.
15  
16 =cut
17  
18 22 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 22 with 'WebService::Braintree::Role::Interface';
21  
22 =head2 all()
23  
24 This returns all the add-ons. This will be an arrayref of L<AddOn|WebService::Braintree::_::AddOn>s. If none are found, then an empty arrayref.
25  
26 This does B<NOT> return a result or error-result object.
27  
28 =cut
29  
30 0 ▶sub all {
Subroutine all: not called CC=1 SCAR=6.9
Pod documented
31 0 my $class = shift;
32 0 $class->gateway->add_on->all;
33 }
34  
35 22 __PACKAGE__->meta->make_immutable;
36  
37 22 1;
38 __END__
« lib/WebService/Braintree/AdvancedSearchNodes.pm ↑ Summary lib/WebService/Braintree/Discount.pm »