Module: Ipregistry::Models
- Defined in:
- lib/ipregistry/models/base.rb,
lib/ipregistry/models/ip_info.rb,
lib/ipregistry/models/location.rb,
lib/ipregistry/models/user_agent.rb
Overview
Value objects wrapping the JSON payloads returned by the Ipregistry API.
Nested objects are always present (never nil), so chained access such as
info.location.country.name never raises even when the API omitted a
section; absent fields return nil and absent flags return false.
Defined Under Namespace
Classes: Base, Carrier, Company, Connection, Continent, Country, Currency, CurrencyFormat, CurrencyFormatAffix, Flag, IpInfo, Language, Location, Region, RequesterIpInfo, Security, TimeZone, UserAgent, UserAgentDevice, UserAgentEngine, UserAgentOperatingSystem