class Geocoder::Result::MaxmindLocal

def self.response_attributes

def self.response_attributes
  %w[ip]
end

def city

def city
  @data[:city_name]
end

def coordinates

def coordinates
  [@data[:latitude], @data[:longitude]]
end

def country

def country
  @data[:country_name]
end

def country_code

def country_code
  @data[:country_code2]
end

def postal_code

def postal_code
  @data[:postal_code]
end

def state

def state
  @data[:region_name]
end

def state_code

def state_code
  "" # Not available in Maxmind's database
end