lib/geolookup/usa/county.rb in geolookup-0.5.0 vs lib/geolookup/usa/county.rb in geolookup-0.5.1
- old
+ new
@@ -7,10 +7,10 @@
# self.code_to_name
#
# Given a state and county code output the county name
# Else return nil
#
- # EX: code_to_name(1, 1) => {1 => {1 => "AUTAUGA", 3 => "BALDWIN", ....}}
+ # EX: code_to_name(1, 1) => "AUTAUGA"
def self.code_to_name(state_code, county_code)
return nil unless CODE_TO_COUNTY_NAME[state_code.to_s.to_i]
CODE_TO_COUNTY_NAME[state_code.to_s.to_i][county_code.to_s.to_i]
end
\ No newline at end of file