dealmap 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dealmap.rb +1 -1
- data/lib/dealmap/version.rb +1 -1
- metadata +1 -1
data/lib/dealmap.rb
CHANGED
@@ -80,7 +80,7 @@ module Dealmap
|
|
80
80
|
# businesses, total = @client.search_businesses(:l => "Miami, FL", :d => 50, :q => "bar")
|
81
81
|
# @example Search for bars within a 50 mile radius of Miami, FL and return 100 results
|
82
82
|
# businesses, total = @client.search_businesses(:l => "Miami, FL", :d => 50, :q => "bar", :ps => 100)
|
83
|
-
def
|
83
|
+
def search_businesses(options = {})
|
84
84
|
options = options.merge(:key => api_key)
|
85
85
|
response = conn.get("/search/businesses/") { |req| req.params = options }
|
86
86
|
doc = Nokogiri::XML(response.body)
|
data/lib/dealmap/version.rb
CHANGED