module GogoKit::Client::Event
{GogoKit::Client} methods for getting events
Public Instance Methods
get_event(event_id, options = {})
click to toggle source
Retrieves a event by ID
@param [Integer] event_id The ID of the event to be retrieved @param [Hash] options Optional options @return [GogoKit::Event] The requested event
# File lib/gogokit/client/event.rb, line 15 def get_event(event_id, options = {}) root = get_root object_from_response(GogoKit::Event, GogoKit::EventRepresenter, :get, "#{root.links['self'].href}/events/" \ "#{event_id}", options) end
get_events_by_category(category_id, options = {})
click to toggle source
Retrieves all events in a particular category
@see viagogo.github.io/developer.viagogo.net/#categoryevents @param [Hash] options Optional options @return [GogoKit::PagedResource] All events in the specified category
# File lib/gogokit/client/event.rb, line 30 def get_events_by_category(category_id, options = {}) root = get_root object_from_response(GogoKit::PagedResource, GogoKit::EventsRepresenter, :get, "#{root.links['self'].href}/categories/" \ "#{category_id}/events", options) end