1GeoIP2::Model::ASN(3) User Contributed Perl DocumentationGeoIP2::Model::ASN(3)
2
3
4
6 GeoIP2::Model::ASN - Model class for the GeoLite2 ASN database
7
9 version 2.006002
10
12 use 5.008;
13
14 use GeoIP2::Model::ASN ();
15
16 my $asn = GeoIP2::Model::ASN->new(
17 raw => {
18 autonomous_system_number => '217',
19 autonomous_system_organization => 'University of Minnesota',
20 ip_address => '128.101.101.101',
21 }
22 );
23
24 print $asn->autonomous_system_number(), "\n";
25 print $asn->autonomous_system_organization(), "\n";
26
28 This class provides a model for the data returned by the GeoLite2 ASN
29 database.
30
32 This class provides the following methods:
33
34 $asn->autonomous_system_number()
35 This returns the autonomous system number
36 (<http://en.wikipedia.org/wiki/Autonomous_system_(Internet)>)
37 associated with the IP address.
38
39 $asn->autonomous_system_organization()
40 This returns the organization associated with the registered autonomous
41 system number
42 (<http://en.wikipedia.org/wiki/Autonomous_system_(Internet)>) for the
43 IP address.
44
45 $asn->ip_address()
46 Returns the IP address used in the lookup.
47
49 Bugs may be submitted through
50 <https://github.com/maxmind/GeoIP2-perl/issues>.
51
53 • Dave Rolsky <drolsky@maxmind.com>
54
55 • Greg Oschwald <goschwald@maxmind.com>
56
57 • Mark Fowler <mfowler@maxmind.com>
58
59 • Olaf Alders <oalders@maxmind.com>
60
62 This software is copyright (c) 2013 - 2019 by MaxMind, Inc.
63
64 This is free software; you can redistribute it and/or modify it under
65 the same terms as the Perl 5 programming language system itself.
66
67
68
69perl v5.34.0 2022-01-21 GeoIP2::Model::ASN(3)