File Coverage

blib/lib/IP/Info/Response/Network.pm
Criterion Covered Total %
statement 9 12 75.0
branch n/a
condition n/a
subroutine 3 4 75.0
pod 0 1 0.0
total 12 17 70.5


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