line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package IP::Info::Response; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
$IP::Info::Response::VERSION = '0.16'; |
4
|
|
|
|
|
|
|
$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
|
|
|
6
|
|
39
|
use Data::Dumper; |
|
6
|
|
|
|
|
9
|
|
|
6
|
|
|
|
|
310
|
|
17
|
|
|
|
|
|
|
|
18
|
6
|
|
|
6
|
|
3280
|
use Moo; |
|
6
|
|
|
|
|
74749
|
|
|
6
|
|
|
|
|
32
|
|
19
|
6
|
|
|
6
|
|
10315
|
use namespace::clean; |
|
6
|
|
|
|
|
58421
|
|
|
6
|
|
|
|
|
21
|
|
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
|
|
|
|
|
|
|
has 'ip_address' => (is => 'rw', required => 1); |
28
|
|
|
|
|
|
|
has 'ip_type' => (is => 'rw', required => 1); |
29
|
|
|
|
|
|
|
has 'network' => (is => 'rw', required => 1); |
30
|
|
|
|
|
|
|
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. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head2 location() |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Returns the object of type L. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 AUTHOR |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Mohammad S Anwar, C<< >> |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 REPOSITORY |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
L |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 BUGS |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Please report any bugs or feature requests to C or |
61
|
|
|
|
|
|
|
through the web interface at L. |
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 |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=item * AnnoCPAN: Annotated CPAN documentation |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
L |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=item * CPAN Ratings |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
L |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=item * Search CPAN |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
L |
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 |
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
|
|
|
|
|
|
|
1; # End of IP::Info::Response |