Sha256: c9c55adc9c857ca1cca6b069271d976ed442a222b22883399d32a587ab19e5f2
Contents?: true
Size: 605 Bytes
Versions: 3
Compression:
Stored size: 605 Bytes
Contents
module Yelp4r class NeighborhoodSearch attr_accessor :client def initialize(client) @client = client end def search_by_geocode(lat, long) options = {:lat => lat, :long => long} process(options) end def search_by_location(location, cc = "") options = {:location => location} options.merge!({:cc => cc}) unless cc.blank? process(options) end private def process(options) Response.new(@client.class.get('/neighborhood_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/neighborhood_search.rb |
yelp4r-1.2.0 | lib/yelp4r/neighborhood_search.rb |
yelp4r-1.1.0 | lib/yelp4r/neighborhood_search.rb |