Module: Karatekit::Client::InstructorDetails

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

Overview

Methods for the InstructorDetails API

See Also:

Instance Method Summary collapse

Instance Method Details

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

Get a single instructor_detail

Parameters:

  • id (Integer)

    ID of the instructor_detail

Returns:

  • (Sawyer::Resource)

    A single instructor_detail

See Also:



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

def instructor_detail(id, options = {})
  get "instructor_details/#{id}", options
end

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

List instructor_details

Returns:

  • (Array<Sawyer::Resource>)

    An array of hashes representing instructor_details

See Also:



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

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