GoCardless/Block.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 2 / 2 totaltotal 100% 21 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« GoCardless/BillingRequestTemplate.pm ↑ Summary GoCardless/Creditor.pm »
1 package Business::GoCardless::Block;
2  
3 =head1 NAME
4  
5 Business::GoCardless::Block
6  
7 =head1 DESCRIPTION
8  
9 A class for a gocardless block, extends L<Business::GoCardless::Resource>
10  
11 =cut
12  
13 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 5 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 5 extends 'Business::GoCardless::Resource';
18  
19 =head1 ATTRIBUTES
20  
21 active
22 block_type
23 created_at
24 id
25 reason_description
26 reason_type
27 resource_reference
28 updated_at
29  
30 =cut
31  
32 5 has [ qw/
33 active
34 block_type
35 created_at
36 id
37 reason_description
38 reason_type
39 resource_reference
40 updated_at
41 / ] => (
42 is => 'rw',
43 );
44  
45 =head1 Operations on a block
46  
47 =head2 disable
48  
49 Disable the block:
50  
51 $Block->disable;
52  
53 =head2 enable
54  
55 Enable the block:
56  
57 $Block->enable;
58  
59 =cut
60  
61 2 ▶sub disable { shift->_action( 'disable',@_ ); }
Subroutine disable: called CC=1 SCAR=0.0
Pod documented
62 2 ▶sub enable { shift->_action( 'enable',@_ ); }
Subroutine enable: called CC=1 SCAR=0.0
Pod documented
63  
64 =head1 AUTHOR
65  
66 Lee Johnson - C<lee@payprop.com>
67  
68 This library is free software; you can redistribute it and/or modify it under
69 the same terms as Perl itself. If you would like to contribute documentation,
70 features, bug fixes, or anything else then please raise an issue / pull request:
71  
72 https://github.com/payprop/business-gocardless
73  
74 =cut
75  
76 5 1;
77  
78 # vim: ts=4:sw=4:et
« GoCardless/BillingRequestTemplate.pm ↑ Summary GoCardless/Creditor.pm »