Module: IPinfo

Includes:
CountriesData
Included in:
IPinfo
Defined in:
lib/ipinfo.rb,
lib/ipinfo/mod.rb,
lib/ipinfo/version.rb

Defined Under Namespace

Classes: Adapter, CacheInterface, DefaultCache, IPinfo, IpAddressMatcher, RateLimitError, Response

Constant Summary collapse

DEFAULT_CACHE_MAXSIZE =
4096
DEFAULT_CACHE_TTL =
60 * 60 * 24
RATE_LIMIT_MESSAGE =
'To increase your limits, please review our ' \
'paid plans at https://ipinfo.io/pricing'
COUNTRY_FLAGS_URL =

Base URL to get country flag image link. “PK” -> “cdn.ipinfo.io/static/images/countries-flags/PK.svg”

"https://cdn.ipinfo.io/static/images/countries-flags/"
VERSION =
'2.2.1'

Constants included from CountriesData

CountriesData::DEFAULT_CONTINENT_LIST, CountriesData::DEFAULT_COUNTRIES_CURRENCIES_LIST, CountriesData::DEFAULT_COUNTRIES_FLAG_LIST, CountriesData::DEFAULT_COUNTRY_LIST, CountriesData::DEFAULT_EU_COUNTRIES_LIST

Class Method Summary collapse

Class Method Details

.create(access_token = nil, settings = {}) ⇒ Object



25
26
27
# File 'lib/ipinfo.rb', line 25

def create(access_token = nil, settings = {})
    IPinfo.new(access_token, settings)
end