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