Class: CityGrid::Reviews
Instance Attribute Summary
Attributes inherited from Api
Instance Method Summary collapse
Methods inherited from Api
#initialize, #request, #results
Constructor Details
This class inherits a constructor from CityGrid::Api
Instance Method Details
#uri ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/city_grid/reviews.rb', line 3 def uri if request_opts.has_key?(:lat) && request_opts.has_key?(:lon) '/reviews/v2/search/latlon' else '/reviews/v2/search/where' end end |