Module: Karatekit::Client::Events
- Included in:
- Karatekit::Client
- Defined in:
- lib/karatekit/client/events.rb
Overview
Methods for the Events API
Instance Method Summary collapse
-
#event(id, options = {}) ⇒ Sawyer::Resource
Get a single event.
-
#events(options = {}) ⇒ Array<Sawyer::Resource>
List events.
Instance Method Details
#event(id, options = {}) ⇒ Sawyer::Resource
Get a single event
22 23 24 |
# File 'lib/karatekit/client/events.rb', line 22 def event(id, = {}) get "events/#{id}", end |
#events(options = {}) ⇒ Array<Sawyer::Resource>
List events
13 14 15 |
# File 'lib/karatekit/client/events.rb', line 13 def events( = {}) paginate "events", end |