class Geocoder::Result::Mapbox
def state_code
def state_code if id_matches_name?(data['id'], 'region') value = data['properties']['short_code'] else value = context_part('region', 'short_code') end value.split('-').last unless value.nil? end
def state_code if id_matches_name?(data['id'], 'region') value = data['properties']['short_code'] else value = context_part('region', 'short_code') end value.split('-').last unless value.nil? end