class Foursquare::Merchant::Venue
Public Instance Methods
edit(params)
click to toggle source
# File lib/foursquare/venue.rb, line 42 def edit(params) response = self.post("/venues/#{id}/edit", params)['venue'] temp_venue = self.fetch temp_venue.keys.each { |k| self.send("#{k}=", temp_venue.send("#{k}")) } self end
fetch()
click to toggle source
# File lib/foursquare/venue.rb, line 28 def fetch response = self.get("/venues/#{id}", {})['venue'] self.class.new(response, @consumer) end
stats(start_at=nil, end_at=nil)
click to toggle source
# File lib/foursquare/venue.rb, line 33 def stats(start_at=nil, end_at=nil) params = {} params[:start_at] = start_at if start_at params[:end_at] = end_at if end_at response = self.get("/venues/#{id}/stats", params)['stats'] VenueStats.new(response) end