Module: IPinfoLite
- Includes:
- CountriesData
- Included in:
- IPinfo::IPinfoLite
- Defined in:
- lib/ipinfo/mod.rb,
lib/ipinfo_lite.rb
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/'
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
23 24 25 |
# File 'lib/ipinfo_lite.rb', line 23 def create(access_token = nil, settings = {}) IPinfo::IPinfoLite.new(access_token, settings) end |