class Geocoder::Result::Freegeoip
def self.response_attributes
def self.response_attributes %w[metrocode ip] end
def address(format = :full)
def address(format = :full) s = state_code.to_s == "" ? "" : ", #{state_code}" "#{city}#{s} #{postal_code}, #{country}".sub(/^[ ,]*/, "") end
def city
def city @data['city'] end
def country
def country @data['country_name'] end
def country_code
def country_code @data['country_code'] end
def postal_code
def postal_code @data['zipcode'] end
def state
def state @data['region_name'] end
def state_code
def state_code @data['region_code'] end