Sha256: 147ea2f222622806618670c984b07f1120c1a2b9fec0f25084c68675469275f5

Contents?: true

Size: 514 Bytes

Versions: 10

Compression:

Stored size: 514 Bytes

Contents

module Foursquare2
  module Events

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

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

    # Retrieve information about all event categories.

    def event_categories
      response = connection.get("events/categories")
      return_error_or_body(response, response.body.response.categories)
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
foursquare2-1.9.8 lib/foursquare2/events.rb
foursquare2-1.9.7 lib/foursquare2/events.rb
foursquare2-1.9.6 lib/foursquare2/events.rb
foursquare2-1.9.5 lib/foursquare2/events.rb
foursquare2-1.9.4 lib/foursquare2/events.rb
foursquare2-1.9.3 lib/foursquare2/events.rb
foursquare2-1.9.2 lib/foursquare2/events.rb
foursquare2-1.9.1 lib/foursquare2/events.rb
foursquare2-1.9.0 lib/foursquare2/events.rb
foursquare2-1.8.2 lib/foursquare2/events.rb