Sha256: 8002f009545888d140be82adf064a5476b4b01f9c2877158bcc53b2c8b5adae1
Contents?: true
Size: 894 Bytes
Versions: 3
Compression:
Stored size: 894 Bytes
Contents
module Yelp4r class ReviewSearch attr_accessor :client def initialize(client) @client = client end 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 def search_by_geocode_and_radius(lat, long, optional = {}) options = {:lat => lat, :long => long} process(options, optional) end def search_by_location(location, optional = {}) options = {:location => location} process(options, optional) end private def process(options, optional) options.merge!(optional) unless optional.blank? Response.new(@client.class.get('/business_review_search', :query => options)) end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
tcocca-yelp4r-1.0.2 | lib/yelp4r/review_search.rb |
yelp4r-1.2.0 | lib/yelp4r/review_search.rb |
yelp4r-1.1.0 | lib/yelp4r/review_search.rb |