lib/romato.rb in romato-0.1.1 vs lib/romato.rb in romato-0.1.2
- old
+ new
@@ -239,17 +239,17 @@
j = options.key?(:establishment_type) ? "&establishment_type=#{options[:establishment_type]}" : ""
k = options.key?(:collection_id) ? "&collection_id=#{options[:collection_id]}" : ""
l = options.key?(:category) ? "&category=#{options[:category]}" : ""
m = options.key?(:sort) ? "&sort=#{options[:sort]}" : ""
n = options.key?(:order) ? "&order=#{options[:order]}" : ""
- zomato_search_url = a + b + c + d + e + f + g + h + i + j + k + l + m + n
+ zomato_search_url = url_base + a + b + c + d + e + f + g + h + i + j + k + l + m + n
response = HTTParty.get(zomato_search_url, headers: @headers)
if response.success?
@search = response.parsed_response
else
raise response.response
end
end
end
-end
\ No newline at end of file
+end