placefinder 0.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/placefinder/base.rb +2 -2
- data/lib/placefinder/version.rb +1 -1
- metadata +3 -2
data/lib/placefinder/base.rb
CHANGED
@@ -3,7 +3,7 @@ require 'httparty'
|
|
3
3
|
|
4
4
|
module Placefinder
|
5
5
|
class Base
|
6
|
-
|
6
|
+
API_URI = 'http://where.yahooapis.com/geocode'
|
7
7
|
|
8
8
|
def initialize(params = {})
|
9
9
|
@api_key = params[:api_key]
|
@@ -11,7 +11,7 @@ module Placefinder
|
|
11
11
|
|
12
12
|
def get(params = {})
|
13
13
|
params.merge!({:appid => @api_key}) if @api_key
|
14
|
-
response = HTTParty.get(
|
14
|
+
response = HTTParty.get(API_URI, :query => params)
|
15
15
|
response.parsed_response
|
16
16
|
end
|
17
17
|
end
|
data/lib/placefinder/version.rb
CHANGED
metadata
CHANGED