From fa25b78513feb5024ba03a621cafbba47d942af7 Mon Sep 17 00:00:00 2001
From: Alex Reisner <alex@alexreisner.com>
Date: Fri, 4 Mar 2011 01:04:44 -0500
Subject: [PATCH] Use more generic method name.

---
 lib/geocoder/results/yahoo.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/geocoder/results/yahoo.rb b/lib/geocoder/results/yahoo.rb
index d82a0802..3f964fa2 100644
--- a/lib/geocoder/results/yahoo.rb
+++ b/lib/geocoder/results/yahoo.rb
@@ -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
-- 
GitLab