Module: Untappd::Client::Venue

Included in:
Untappd::Client
Defined in:
lib/untappd-api/client/venue.rb

Instance Method Summary collapse

Instance Method Details

#venue(id) ⇒ Hashie::Mash

Returns info for the specified venue.

Examples:

Retrieve the venue with ID 12645.

Untappd.venue(12645)

Parameters:

  • id (String, Integer)

    The ID of the venue.

Returns:

  • (Hashie::Mash)

    The requested venue.



28
29
30
31
# File 'lib/untappd-api/client/venue.rb', line 28

def venue(id)
  options = { :venue_id => id }
  get('/venue_info', options)
end

#venue_feed(id, options = {}) ⇒ Array

Returns the feed for the specified venue.

Examples:

Retrieve the feed for venue with ID 12645.

Untappd.venue_feed(399)

Parameters:

  • id (String, Integer)

    The ID of the venue.

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :since (String, Integer)

    The ID of the last recent check-in.

  • :offset (String, Integer)

    The offset you would like the dataset to begin with.

Returns:

  • (Array)

    The requested venue feed.



15
16
17
18
# File 'lib/untappd-api/client/venue.rb', line 15

def venue_feed(id, options={})
  options.merge!(:venue_id => id)
  get('/venue_checkins', options)
end