Class: Yelp4r::ReviewSearch

Inherits:
Object
  • Object
show all
Defined in:
lib/yelp4r/review_search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject

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 = {})
  options = {:tl_lat => tl_lat, :tl_long => tl_long, :br_lat => br_lat, :br_long => br_long}
  process(options, 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 = {})
  options = {:lat => lat, :long => long}
  process(options, 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 = {})
  options = {:location => location}
  process(options, optional)
end