lib/geolookup/usa/state.rb in geolookup-0.5.6 vs lib/geolookup/usa/state.rb in geolookup-0.5.7
- old
+ new
@@ -91,9 +91,18 @@
def self.abbreviations
@state_code_to_abbreviation ||= Geolookup.load_hash_from_file(STATE_CODE_TO_ABBREVIATION_FILE)
@state_code_to_abbreviation.values
end
+ ###################################################################
+ # self.abbreviations
+ #
+ # Returns an array of state abbreviations
+ #
+ def self.domestic_abbreviations
+ @domestic_state_code_to_abbreviation ||= Geolookup.load_hash_from_file(STATE_CODE_TO_ABBREVIATION_FILE).delete_if{|code, abbr| code > 56}
+ @domestic_state_code_to_abbreviation.values
+ end
###################################################################
# self.names
#
# Returns an array of state names