class Geocoder::Result::Ip2locationLite

def self.response_attributes

def self.response_attributes
  %w[country_short country_long region latitude longitude isp
    domain netspeed areacode iddcode timezone zipcode weatherstationname
    weatherstationcode mcc mnc mobilebrand elevation usagetype addresstype
    category district asn as]
end

def city

def city
  @data[:city]
end

def coordinates

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

def country

def country
  @data[:country_long]
end

def country_code

def country_code
  @data[:country_short]
end

def postal_code

def postal_code
  @data[:zipcode]
end

def state

def state
  @data[:region]
end

def state_code

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