Method: Geocoder::Result::GeocoderCa#country_code

Defined in:
lib/geocoder/results/geocoder_ca.rb

#country_codeObject



36
37
38
39
# File 'lib/geocoder/results/geocoder_ca.rb', line 36

def country_code
  return nil if state.nil? || state == ""
  canadian_province_abbreviations.include?(state) ? "CA" : "US"
end