Class: Untappd::Venue

Inherits:
Base
  • Object
show all
Defined in:
lib/untappd/venue.rb

Class Method Summary collapse

Methods inherited from Base

auth_options, response_to_mash

Class Method Details

.feed(venue_id, options = {}) ⇒ Object

options:

  • min_id (int, optional) - The numeric ID of the most recent check-in. New results

will only be shown if there are checkins before this ID

  • max_Id (int, optional) - The checkin ID that you want the results to start with

  • limit (int, optional) - The number of results to return, max of 50, default is 25



8
9
10
11
# File 'lib/untappd/venue.rb', line 8

def self.feed(venue_id, options={})
  options.merge!(auth_options)
  response_to_mash get("/venue/checkins/#{venue_id}", :query => options)
end

.foursquare_lookup(foursquare_id) ⇒ Object



17
18
19
20
21
# File 'lib/untappd/venue.rb', line 17

def self.foursquare_lookup(foursquare_id)
  response_to_mash(
    get("/venue/foursquare_lookup/#{foursquare_id}", :query => auth_options)
  )
end

.info(venue_id) ⇒ Object



13
14
15
# File 'lib/untappd/venue.rb', line 13

def self.info(venue_id)
  response_to_mash get("/venue/info/#{venue_id}", :query => auth_options)
end