Module: Demio::Client::Events

Included in:
Demio::Client
Defined in:
lib/demio/events.rb

Instance Method Summary collapse

Instance Method Details

#events(type = nil) ⇒ Net::HTTPOk

Fetches all events from Demio

Parameters:

  • type (String) (defaults to: nil)

Returns:

  • (Net::HTTPOk)


10
11
12
13
# File 'lib/demio/events.rb', line 10

def events(type = nil)
  type_param = type ? "?type=#{type}" : nil
  get "events#{type_param}"
end