Sha256: 8915d6123fa11f1b0361929714e100357e50185eae740e8e3c36cd69b7318954

Contents?: true

Size: 624 Bytes

Versions: 3

Compression:

Stored size: 624 Bytes

Contents

module Foursquare2
  module Events

    # Retrieve information about an event
    #
    # param [String] event_id The ID of the event

    def event(event_id, options={})
      response = connection.get do |req|
        req.url "events/#{event_id}", options
      end
      return_error_or_body(response, response.body.response.event)
    end

    # Retrieve information about all event categories.

    def event_categories(options={})
      response = connection.get do |req|
        req.url "events/categories", options
      end
      return_error_or_body(response, response.body.response.categories)
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foursquare2-2.0.2 lib/foursquare2/events.rb
foursquare2-2.0.1 lib/foursquare2/events.rb
foursquare2-2.0.0 lib/foursquare2/events.rb