lib/geolookup/usa/state.rb in geolookup-0.5.9 vs lib/geolookup/usa/state.rb in geolookup-0.5.10
- old
+ new
@@ -120,9 +120,27 @@
###################################################################
# self.names
#
# Returns an array of state names
#
+ def self.codes_and_names
+ @codes_and_names ||= Geolookup.load_hash_from_file(STATE_CODE_TO_FULL_FILE)
+ end
+
+ ###################################################################
+ # self.names
+ #
+ # Returns an array of state names
+ #
+ def self.codes_and_abbreviations
+ @codes_and_abbreviations ||= Geolookup.load_hash_from_file(STATE_CODE_TO_ABBREVIATION_FILE)
+ end
+
+ ###################################################################
+ # self.names
+ #
+ # Returns an array of state names
+ #
def self.names
@state_code_to_full ||= Geolookup.load_hash_from_file(STATE_CODE_TO_FULL_FILE)
@state_code_to_full.values
end