Skip to content
Snippets Groups Projects
Commit fa25b785 authored by Alex Reisner's avatar Alex Reisner
Browse files

Use more generic method name.

parent c615d244
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ module Geocoder::Result
(1..3).to_a.map{ |i| @data["line#{i}"] }.reject{ |i| i.nil? or i == "" }.join(", ")
end
def self.yahoo_attributes
def self.response_attributes
%w[quality latitude longitude offsetlat offsetlon radius boundingbox name
line1 line2 line3 line4 cross house street xstreet unittype unit postal
neighborhood city county state country countrycode statecode countycode
......@@ -19,7 +19,7 @@ module Geocoder::Result
timezone areacode uzip hash woeid woetype]
end
yahoo_attributes.each do |a|
response_attributes.each do |a|
define_method a do
@data[a]
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