Method: MaxMind::GeoIP2::Record::Traits#ip_address
- Defined in:
- lib/maxmind/geoip2/record/traits.rb
#ip_address ⇒ String?
The IP address that the data in the model is for. If you performed a “me” lookup against the web service, this will be the externally routable IP address for the system the code is running on. If the system is behind a NAT, this may differ from the IP address locally assigned to it. This attribute is returned by all end points.
72 73 74 |
# File 'lib/maxmind/geoip2/record/traits.rb', line 72 def ip_address get('ip_address') end |