Monzo/Address.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 50.0% 1 / 2 totaltotal 97.1% 34 / 35 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Monzo/Webhook.pm ↑ Summary Monzo/Balance.pm »
1 package Business::Monzo::Address;
2  
3 =head1 NAME
4  
5 Business::Monzo::Address
6  
7 =head1 DESCRIPTION
8  
9 A class for a Monzo address, extends L<Business::Monzo::Resource>
10  
11 =cut
12  
13 11 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 11 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 11 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 11 extends 'Business::Monzo::Resource';
18 11 with 'Business::Monzo::Utils';
19  
20 11 ▶use Types::Standard qw/ :all /;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 11 ▶use Business::Monzo::Address;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 11 ▶use Business::Monzo::Exception;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 =head1 ATTRIBUTES
25  
26 The Address class has the following attributes (with their type).
27  
28 address (Str)
29 city (Str)
30 country (Str)
31 postcode (Str)
32 region (Str)
33 longitude (Num)
34 latitude (Num)
35  
36 =cut
37  
38 11 has [ qw/ address city country postcode region / ] => (
39 is => 'ro',
40 isa => Str,
41 );
42  
43 11 has [ qw/ latitude longitude / ] => (
44 is => 'ro',
45 isa => Num,
46 );
47  
48 =head1 Operations on an address
49  
50 None at present
51  
52 =cut
53  
54 1 ▶sub url {
Subroutine url: called CC=1 SCAR=0.0
Pod undocumented
55 1 Business::Monzo::Exception->throw({
56 message => "Monzo API does not currently support getting address data",
57 });
58 }
59  
60 1 ▶sub get {
Subroutine get: called CC=1 SCAR=0.0
Pod documented
61 1 Business::Monzo::Exception->throw({
62 message => "Monzo API does not currently support getting address data",
63 });
64 }
65  
66 =head1 SEE ALSO
67  
68 L<Business::Monzo>
69  
70 L<Business::Monzo::Resource>
71  
72 =head1 AUTHOR
73  
74 Lee Johnson - C<leejo@cpan.org>
75  
76 =head1 LICENSE
77  
78 This library is free software; you can redistribute it and/or modify it under
79 the same terms as Perl itself. If you would like to contribute documentation,
80 features, bug fixes, or anything else then please raise an issue / pull request:
81  
82 https://github.com/leejo/business-monzo
83  
84 =cut
85  
86 11 1;
87  
88 # vim: ts=4:sw=4:et
« Monzo/Webhook.pm ↑ Summary Monzo/Balance.pm »