class GeoIP2::Database
- GeoIP2::Database
- Reference
- Object
Defined in:
geoip2/database.crConstructors
Instance Method Summary
-
#anonymous_ip(ip_address : String) : Model::AnonymousIp
Returns
Model::AnonymousIpor raisesAddressNotFoundErrorif ip_address is not in the database -
#anonymous_ip?(ip_address : String) : Model::AnonymousIp | Nil
Returns
Model::AnonymousIpornilif ip_address is not in the database -
#asn(ip_address : String) : Model::Asn
Returns
Model::Asnor raisesAddressNotFoundErrorif ip_address is not in the database -
#asn?(ip_address : String) : Model::Asn | Nil
Returns
Model::Asnornilif ip_address is not in the database -
#city(ip_address : String) : Model::City
Returns
Model::Cityor raisesAddressNotFoundErrorif ip_address is not in the database -
#city?(ip_address : String) : Model::City | Nil
Returns
Model::Cityornilif ip_address is not in the database -
#connection_type(ip_address : String) : Model::ConnectionType
Returns
Model::ConnectionTypeor raisesAddressNotFoundErrorif ip_address is not in the database -
#connection_type?(ip_address : String) : Model::ConnectionType | Nil
Returns
Model::ConnectionTypeornilif ip_address is not in the database -
#country(ip_address : String) : Model::Country
Returns
Model::Countryor raisesAddressNotFoundErrorif ip_address is not in the database -
#country?(ip_address : String) : Model::Country | Nil
Returns
Model::Countryornilif ip_address is not in the database -
#density_income(ip_address : String) : Model::DensityIncome
Returns
Model::DensityIncomeor raisesAddressNotFoundErrorif ip_address is not in the database -
#density_income?(ip_address : String) : Model::DensityIncome | Nil
Returns
Model::DensityIncomeornilif ip_address is not in the database -
#domain(ip_address : String) : Model::Domain
Returns
Model::Domainor raisesAddressNotFoundErrorif ip_address is not in the database -
#domain?(ip_address : String) : Model::Domain | Nil
Returns
Model::Domainornilif ip_address is not in the database -
#enterprise(ip_address : String) : Model::Enterprise
Returns
Model::Enterpriseor raisesAddressNotFoundErrorif ip_address is not in the database -
#enterprise?(ip_address : String) : Model::Enterprise | Nil
Returns
Model::Enterpriseornilif ip_address is not in the database -
#isp(ip_address : String) : Model::Isp
Returns
Model::Ispor raisesAddressNotFoundErrorif ip_address is not in the database -
#isp?(ip_address : String) : Model::Isp | Nil
Returns
Model::Ispornilif ip_address is not in the database - #metadata
-
#user_count(ip_address : String) : Model::UserCount
Returns
Model::UserCountor raisesAddressNotFoundErrorif ip_address is not in the database -
#user_count?(ip_address : String) : Model::UserCount | Nil
Returns
Model::UserCountornilif 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