class Freegeoip::Response

Attributes

city[R]
country_code[R]
country_name[R]
ip[R]
latitude[R]
longitude[R]
metro_code[R]
region_code[R]
region_name[R]
remote[R]
time_zone[R]
zip_code[R]

Public Class Methods

new(remote, data) click to toggle source
# File lib/freegeoip/response.rb, line 7
def initialize(remote, data)
  @remote = remote
  data.each do |key, value|
    instance_variable_set "@#{key}", value
  end
end