class GeoIP2::Database
- GeoIP2::Database
- Reference
- Object
Defined in:
geoip2/database.crConstructors
Instance Method Summary
-
#anonymous_ip(ip_address : String) : Model::AnonymousIp
Returns
Model::AnonymousIp
or raisesAddressNotFoundError
if ip_address is not in the database -
#anonymous_ip?(ip_address : String) : Model::AnonymousIp | Nil
Returns
Model::AnonymousIp
ornil
if ip_address is not in the database -
#asn(ip_address : String) : Model::Asn
Returns
Model::Asn
or raisesAddressNotFoundError
if ip_address is not in the database -
#asn?(ip_address : String) : Model::Asn | Nil
Returns
Model::Asn
ornil
if ip_address is not in the database -
#city(ip_address : String) : Model::City
Returns
Model::City
or raisesAddressNotFoundError
if ip_address is not in the database -
#city?(ip_address : String) : Model::City | Nil
Returns
Model::City
ornil
if ip_address is not in the database -
#connection_type(ip_address : String) : Model::ConnectionType
Returns
Model::ConnectionType
or raisesAddressNotFoundError
if ip_address is not in the database -
#connection_type?(ip_address : String) : Model::ConnectionType | Nil
Returns
Model::ConnectionType
ornil
if ip_address is not in the database -
#country(ip_address : String) : Model::Country
Returns
Model::Country
or raisesAddressNotFoundError
if ip_address is not in the database -
#country?(ip_address : String) : Model::Country | Nil
Returns
Model::Country
ornil
if ip_address is not in the database -
#density_income(ip_address : String) : Model::DensityIncome
Returns
Model::DensityIncome
or raisesAddressNotFoundError
if ip_address is not in the database -
#density_income?(ip_address : String) : Model::DensityIncome | Nil
Returns
Model::DensityIncome
ornil
if ip_address is not in the database -
#domain(ip_address : String) : Model::Domain
Returns
Model::Domain
or raisesAddressNotFoundError
if ip_address is not in the database -
#domain?(ip_address : String) : Model::Domain | Nil
Returns
Model::Domain
ornil
if ip_address is not in the database -
#enterprise(ip_address : String) : Model::Enterprise
Returns
Model::Enterprise
or raisesAddressNotFoundError
if ip_address is not in the database -
#enterprise?(ip_address : String) : Model::Enterprise | Nil
Returns
Model::Enterprise
ornil
if ip_address is not in the database -
#isp(ip_address : String) : Model::Isp
Returns
Model::Isp
or raisesAddressNotFoundError
if ip_address is not in the database -
#isp?(ip_address : String) : Model::Isp | Nil
Returns
Model::Isp
ornil
if ip_address is not in the database - #metadata
-
#user_count(ip_address : String) : Model::UserCount
Returns
Model::UserCount
or raisesAddressNotFoundError
if ip_address is not in the database -
#user_count?(ip_address : String) : Model::UserCount | Nil
Returns
Model::UserCount
ornil
if ip_address is not in the database
Constructor Detail
Instance Method Detail
Returns Model::AnonymousIp
or raises AddressNotFoundError
if ip_address is not in the database
Returns Model::AnonymousIp
or nil
if ip_address is not in the database
Returns Model::Asn
or raises AddressNotFoundError
if ip_address is not in the database
Returns Model::Asn
or nil
if ip_address is not in the database
Returns Model::City
or raises AddressNotFoundError
if ip_address is not in the database
Returns Model::City
or nil
if ip_address is not in the database
Returns Model::ConnectionType
or raises AddressNotFoundError
if ip_address is not in the database
Returns Model::ConnectionType
or nil
if ip_address is not in the database
Returns Model::Country
or raises AddressNotFoundError
if ip_address is not in the database
Returns Model::Country
or nil
if ip_address is not in the database
Returns Model::DensityIncome
or raises AddressNotFoundError
if ip_address is not in the database
Returns Model::DensityIncome
or nil
if ip_address is not in the database
Returns Model::Domain
or raises AddressNotFoundError
if ip_address is not in the database
Returns Model::Domain
or nil
if ip_address is not in the database
Returns Model::Enterprise
or raises AddressNotFoundError
if ip_address is not in the database
Returns Model::Enterprise
or nil
if ip_address is not in the database
Returns Model::Isp
or raises AddressNotFoundError
if ip_address is not in the database
Returns Model::Isp
or nil
if ip_address is not in the database
Returns Model::UserCount
or raises AddressNotFoundError
if ip_address is not in the database
Returns Model::UserCount
or nil
if ip_address is not in the database