Info/Response/Network.pm

filter: Statementstmt 86.9% 20 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 82.1% 23 / 28 SCAR 0.0
CC
1
Cov
87%
BUILD
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Info/Response/Location.pm ↑ Summary Info/UserAgent/Exception.pm »
1 package IP::Info::Response::Network;
2  
3 6 $IP::Info::Response::Network::VERSION = '0.16';
4 6 $IP::Info::Response::Network::AUTHORITY = 'cpan:MANWAR';
5  
6 =head1 NAME
7  
8 IP::Info::Response::Network - Placeholder for Network for the module L<IP::Info::Response>.
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 6 has 'ip_routing_type' => (is => 'ro');
22 6 has 'carrier' => (is => 'ro');
23 6 has 'line_speed' => (is => 'ro');
24 6 has 'asn' => (is => 'ro');
25 6 has 'organization' => (is => 'ro');
26 6 has 'domain_tld' => (is => 'ro');
27 6 has 'domain_sld' => (is => 'ro');
28 6 has 'connection_type' => (is => 'ro');
29  
30 sub BUILD {
31 0 ▶ my ($self, $param) = @_;
Subroutine BUILD: not called CC=1 SCAR=6.9
Pod undocumented
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<< <mohammad.anwar at yahoo.com> >>
74  
75 =head1 REPOSITORY
76  
77 L<https://github.com/manwar/IP-Info>
78  
79 =head1 BUGS
80  
81 Please report any bugs or feature requests to C<bug-ip-info at rt.cpan.org> or
82 through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=IP-Info>.
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<http://rt.cpan.org/NoAuth/Bugs.html?Dist=IP-Info>
99  
100 =item * AnnoCPAN: Annotated CPAN documentation
101  
102 L<http://annocpan.org/dist/IP-Info>
103  
104 =item * CPAN Ratings
105  
106 L<http://cpanratings.perl.org/d/IP-Info>
107  
108 =item * Search CPAN
109  
110 L<http://search.cpan.org/dist/IP-Info/>
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<http://www.perlfoundation.org/artistic_license_2_0>
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 6 1; # End of IP::Info::Response::Network
« Info/Response/Location.pm ↑ Summary Info/UserAgent/Exception.pm »