File Coverage

blib/lib/Address/PostCode/Australia/Place.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1             package Address::PostCode::Australia::Place;
2              
3             $Address::PostCode::Australia::Place::VERSION = '0.12';
4             $Address::PostCode::Australia::Place::AUTHORITY = 'cpan:MANWAR';
5              
6             =head1 NAME
7              
8             Address::PostCode::Australia::Place - Placeholder for 'place' for Address::PostCode::Australia.
9              
10             =head1 VERSION
11              
12             Version 0.12
13              
14             =cut
15              
16 5     5   57115 use 5.006;
  5         23  
17 5     5   555 use Data::Dumper;
  5         5864  
  5         224  
18              
19 5     5   460 use Moo;
  5         9472  
  5         22  
20 5     5   2697 use namespace::autoclean;
  5         11072  
  5         29  
21              
22             has 'id' => (is => 'ro');
23             has 'category' => (is => 'ro');
24             has 'location' => (is => 'ro');
25             has 'latitude' => (is => 'ro');
26             has 'longitude' => (is => 'ro');
27             has 'postcode' => (is => 'ro');
28             has 'state' => (is => 'ro');
29              
30             =head1 DESCRIPTION
31              
32             It holds the place detailed information as provided by API response. It provides
33             simple interface to fetch individual information on request.
34              
35             =head1 METHODS
36              
37             =head2 id()
38              
39             Returns the place id.
40              
41             =head2 category()
42              
43             Returns the place category.
44              
45             =head2 location()
46              
47             Returns the place location.
48              
49             =head2 latitude()
50              
51             Returns the place latitude.
52              
53             =head2 longitude()
54              
55             Returns the place longitude.
56              
57             =head2 postcode()
58              
59             Returns the place postcode.
60              
61             =head2 state()
62              
63             Returns the place state.
64              
65             =head1 AUTHOR
66              
67             Mohammad S Anwar, C<< >>
68              
69             =head1 REPOSITORY
70              
71             L
72              
73             =head1 BUGS
74              
75             Please report any bugs or feature requests to C,
76             or through the web interface at L.
77             I will be notified, and then you'll automatically be notified of progress on your
78             bug as I make changes.
79              
80             =head1 SUPPORT
81              
82             You can find documentation for this module with the perldoc command.
83              
84             perldoc Address::PostCode::Australia::Place
85              
86             You can also look for information at:
87              
88             =over 4
89              
90             =item * RT: CPAN's request tracker (report bugs here)
91              
92             L
93              
94             =item * AnnoCPAN: Annotated CPAN documentation
95              
96             L
97              
98             =item * CPAN Ratings
99              
100             L
101              
102             =item * Search CPAN
103              
104             L
105              
106             =back
107              
108             =head1 LICENSE AND COPYRIGHT
109              
110             Copyright (C) 2014 - 2015 Mohammad S Anwar.
111              
112             This program is free software; you can redistribute it and / or modify it under
113             the terms of the the Artistic License (2.0). You may obtain a copy of the full
114             license at:
115              
116             L
117              
118             Any use, modification, and distribution of the Standard or Modified Versions is
119             governed by this Artistic License.By using, modifying or distributing the Package,
120             you accept this license. Do not use, modify, or distribute the Package, if you do
121             not accept this license.
122              
123             If your Modified Version has been derived from a Modified Version made by someone
124             other than you,you are nevertheless required to ensure that your Modified Version
125             complies with the requirements of this license.
126              
127             This license does not grant you the right to use any trademark, service mark,
128             tradename, or logo of the Copyright Holder.
129              
130             This license includes the non-exclusive, worldwide, free-of-charge patent license
131             to make, have made, use, offer to sell, sell, import and otherwise transfer the
132             Package with respect to any patent claims licensable by the Copyright Holder that
133             are necessarily infringed by the Package. If you institute patent litigation
134             (including a cross-claim or counterclaim) against any party alleging that the
135             Package constitutes direct or contributory patent infringement,then this Artistic
136             License to you shall terminate on the date that such litigation is filed.
137              
138             Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND
139             CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED
140             WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
141             NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS
142             REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT,
143             INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE
144             OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
145              
146             =cut
147              
148             1; # End of Address::PostCode::Australia::Place