class Geocoder::Result::IpdataCo

def self.response_attributes

def self.response_attributes
  %w[ip asn organisation currency currency_symbol calling_code flag time_zone is_eu]
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['postal']
end

def state

def state
  @data['region']
end

def state_code

def state_code
  @data['region_code']
end