Info/Response.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 19 / 19 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Info/UserAgent/Exception.pm ↑ Summary
1 package IP::Info::Response;
2  
3 6 $IP::Info::Response::VERSION = '0.16';
4 6 $IP::Info::Response::AUTHORITY = 'cpan:MANWAR';
5  
6 =head1 NAME
7  
8 IP::Info::Response - Response handler for the module IP::Info.
9  
10 =head1 VERSION
11  
12 Version 0.16
13  
14 =cut
15  
16 6 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 6 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 6 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 =head1 DESCRIPTION
22  
23 Response handler for the module IP::Info and exposes the response data to user.
24  
25 =cut
26  
27 6 has 'ip_address' => (is => 'rw', required => 1);
28 6 has 'ip_type' => (is => 'rw', required => 1);
29 6 has 'network' => (is => 'rw', required => 1);
30 6 has 'location' => (is => 'rw', required => 1);
31  
32 =head1 METHODS
33  
34 =head2 ip_type()
35  
36 Returns the IP Type.
37  
38 =head2 ip_address()
39  
40 Returns the IP address.
41  
42 =head2 network()
43  
44 Returns the object of type L<IP::Info::Response::Network>.
45  
46 =head2 location()
47  
48 Returns the object of type L<IP::Info::Response::Location>.
49  
50 =head1 AUTHOR
51  
52 Mohammad S Anwar, C<< <mohammad.anwar at yahoo.com> >>
53  
54 =head1 REPOSITORY
55  
56 L<https://github.com/manwar/IP-Info>
57  
58 =head1 BUGS
59  
60 Please report any bugs or feature requests to C<bug-ip-info at rt.cpan.org> or
61 through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=IP-Info>.
62 I will be notified and then you'll automatically be notified of progress on your
63 bug as I make changes.
64  
65 =head1 SUPPORT
66  
67 You can find documentation for this module with the perldoc command.
68  
69 perldoc IP::Info::Response
70  
71 You can also look for information at:
72  
73 =over 4
74  
75 =item * RT: CPAN's request tracker
76  
77 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=IP-Info>
78  
79 =item * AnnoCPAN: Annotated CPAN documentation
80  
81 L<http://annocpan.org/dist/IP-Info>
82  
83 =item * CPAN Ratings
84  
85 L<http://cpanratings.perl.org/d/IP-Info>
86  
87 =item * Search CPAN
88  
89 L<http://search.cpan.org/dist/IP-Info/>
90  
91 =back
92  
93 =head1 LICENSE AND COPYRIGHT
94  
95 Copyright (C) 2011 - 2016 Mohammad S Anwar.
96  
97 This program is free software; you can redistribute it and/or modify it under
98 the terms of the the Artistic License (2.0). You may obtain a copy of the full
99 license at:
100  
101 L<http://www.perlfoundation.org/artistic_license_2_0>
102  
103 Any use, modification, and distribution of the Standard or Modified Versions is
104 governed by this Artistic License.By using, modifying or distributing the Package,
105 you accept this license. Do not use, modify, or distribute the Package, if you do
106 not accept this license.
107  
108 If your Modified Version has been derived from a Modified Version made by someone
109 other than you,you are nevertheless required to ensure that your Modified Version
110 complies with the requirements of this license.
111  
112 This license does not grant you the right to use any trademark, service mark,
113 tradename, or logo of the Copyright Holder.
114  
115 This license includes the non-exclusive, worldwide, free-of-charge patent license
116 to make, have made, use, offer to sell, sell, import and otherwise transfer the
117 Package with respect to any patent claims licensable by the Copyright Holder that
118 are necessarily infringed by the Package. If you institute patent litigation
119 (including a cross-claim or counterclaim) against any party alleging that the
120 Package constitutes direct or contributory patent infringement,then this Artistic
121 License to you shall terminate on the date that such litigation is filed.
122  
123 Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND
124 CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED
125 WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
126 NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS
127 REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT,
128 INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE
129 OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
130  
131 =cut
132  
133 6 1; # End of IP::Info::Response
« Info/UserAgent/Exception.pm ↑ Summary