Skip to content
Snippets Groups Projects
Commit fab61bcc authored by Scott Carleton's avatar Scott Carleton
Browse files

Adding Missing Attributes to Geocoder::Result::Test

Neighborhood, Sub State and Sub State Code
parent a64d2da2
No related branches found
No related tags found
No related merge requests found
......@@ -4,9 +4,9 @@ module Geocoder
module Result
class Test < Base
%w[latitude longitude city state state_code province
province_code postal_code country country_code address
street_address street_number route geometry].each do |attr|
%w[latitude longitude neighborhood city state state_code sub_state
sub_state_code province province_code postal_code country
country_code address street_address street_number route geometry].each do |attr|
define_method(attr) do
@data[attr.to_s] || @data[attr.to_sym]
end
......
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