Module: Karatekit::Client::InstructorGroups

Included in:
Karatekit::Client
Defined in:
lib/karatekit/client/instructor_groups.rb

Overview

Methods for the InstructorGroups API

See Also:

Instance Method Summary collapse

Instance Method Details

#instructor_group(id, options = {}) ⇒ Sawyer::Resource

Get a single instructor_group

Parameters:

  • id (Integer)

    ID of the instructor_group

Returns:

  • (Sawyer::Resource)

    A single instructor_group

See Also:



22
23
24
# File 'lib/karatekit/client/instructor_groups.rb', line 22

def instructor_group(id, options = {})
  get "instructor_groups/#{id}", options
end

#instructor_groups(options = {}) ⇒ Array<Sawyer::Resource>

List instructor_groups

Returns:

  • (Array<Sawyer::Resource>)

    An array of hashes representing instructor_groups

See Also:



13
14
15
# File 'lib/karatekit/client/instructor_groups.rb', line 13

def instructor_groups(options = {})
  paginate "instructor_groups", options
end