NAME
Geo::Location::IP::Model::Enterprise - Records associated with a city
VERSION
version 0.002
SYNOPSIS
use Geo::Location::IP::Database::Reader;
my $reader = Geo::Location::IP::Database::Reader->new(
file => '/path/to/Enterprise.mmdb',
locales => ['de', 'en'],
);
eval {
my $enterprise_model = $reader->enterprise(ip => '1.2.3.4');
my $city = $enterprise_model->city;
my $country = $enterprise_model->country;
printf "%s in %s\n", $city->name, $country->name;
};
DESCRIPTION
This class contains records from an IP address query in an Enterprise database.
The class differs from the Geo::Location::IP::Model::City class only in the number of populated fields.
SUBROUTINES/METHODS
See Geo::Location::IP::Model::City.
DIAGNOSTICS
None.
CONFIGURATION AND ENVIRONMENT
None.
DEPENDENCIES
None.
INCOMPATIBILITIES
None.
BUGS AND LIMITATIONS
None known.
AUTHOR
Andreas Vögele <voegelas@cpan.org>
LICENSE AND COPYRIGHT
Copyright (C) 2025 Andreas Vögele
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.