Skip to content
Snippets Groups Projects
Commit e41bd399 authored by vyrak bunleang's avatar vyrak bunleang
Browse files

return state_code instead of alias state

parent 52ac426e
No related branches found
No related tags found
No related merge requests found
......@@ -36,12 +36,13 @@ module Geocoder::Result
@data['components']['village']
end
def state
@data['components']['state']
end
alias_method :state_code, :state
def state_code
@data['components']['state_code']
end
def postal_code
@data['components']['postcode'].to_s
......
......@@ -49,6 +49,7 @@
"city": "New York City",
"stadium" : "Madison Square Garden",
"state" : "New York",
"state_code" : "NY",
"state_district" : "New York City"
},
"confidence" : 10,
......@@ -70,4 +71,4 @@
},
"total_results" : 1,
"we_are_hiring" : "http://lokku.com/#jobs"
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment