class Timepad::Event

Public Class Methods

new(timepad_client) click to toggle source
# File lib/timepad/event.rb, line 17
def initialize(timepad_client)
  @client = timepad_client
end

Public Instance Methods

get(event_id) click to toggle source

Get event by event_id

@param [String] event_id @return [Hash]

# File lib/timepad/event.rb, line 33
def get(event_id)
  @client.request "events/#{event_id}"
end
list(attrs = {}) click to toggle source

Get all events

@param [Hash] @return [Array]

# File lib/timepad/event.rb, line 25
def list(attrs = {})
  response = @client.request 'events', attrs
end