Class: Yelp4r::ReviewSearch
- Inherits:
-
Object
- Object
- Yelp4r::ReviewSearch
- Defined in:
- lib/yelp4r/review_search.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ ReviewSearch
constructor
A new instance of ReviewSearch.
- #search_by_bounding_box(tl_lat, tl_long, br_lat, br_long, optional = {}) ⇒ Object
- #search_by_geocode_and_radius(lat, long, optional = {}) ⇒ Object
- #search_by_location(location, optional = {}) ⇒ Object
Constructor Details
#initialize(client) ⇒ ReviewSearch
Returns a new instance of ReviewSearch.
6 7 8 |
# File 'lib/yelp4r/review_search.rb', line 6 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
4 5 6 |
# File 'lib/yelp4r/review_search.rb', line 4 def client @client end |
Instance Method Details
#search_by_bounding_box(tl_lat, tl_long, br_lat, br_long, optional = {}) ⇒ Object
10 11 12 13 |
# File 'lib/yelp4r/review_search.rb', line 10 def search_by_bounding_box(tl_lat, tl_long, br_lat, br_long, optional = {}) = {:tl_lat => tl_lat, :tl_long => tl_long, :br_lat => br_lat, :br_long => br_long} process(, optional) end |
#search_by_geocode_and_radius(lat, long, optional = {}) ⇒ Object
15 16 17 18 |
# File 'lib/yelp4r/review_search.rb', line 15 def search_by_geocode_and_radius(lat, long, optional = {}) = {:lat => lat, :long => long} process(, optional) end |
#search_by_location(location, optional = {}) ⇒ Object
20 21 22 23 |
# File 'lib/yelp4r/review_search.rb', line 20 def search_by_location(location, optional = {}) = {:location => location} process(, optional) end |