class Geocoder::Result::Mapbox
def country_code
def country_code if id_matches_name?(data['id'], 'country') value = data['properties']['short_code'] else value = context_part('country', 'short_code') end value.upcase unless value.nil? end
def country_code if id_matches_name?(data['id'], 'country') value = data['properties']['short_code'] else value = context_part('country', 'short_code') end value.upcase unless value.nil? end