Class: EasyLlama::Client::LearnerTrainings
- Defined in:
- lib/easyllama/learner_trainings.rb
Overview
This class provides methods for interacting with the Easy Llama API for learner trainings.
Constant Summary
Constants inherited from Api
Api::DEFAULT_API_VERSION, Api::DEFAULT_URI_BASE
Instance Method Summary collapse
-
#where(page: 1, learner_id: nil, training_id: nil, status: nil, sort: nil) ⇒ Array
Sends a GET request to retrieve all learner trainings.
Methods inherited from Api
#initialize, #parse_response!, #send_request
Constructor Details
This class inherits a constructor from EasyLlama::Client::Api
Instance Method Details
#where(page: 1, learner_id: nil, training_id: nil, status: nil, sort: nil) ⇒ Array
Sends a GET request to retrieve all learner trainings.
11 12 13 14 15 |
# File 'lib/easyllama/learner_trainings.rb', line 11 def where(page: 1, learner_id: nil, training_id: nil, status: nil, sort: nil) response = send_request(path: '/learner_trainings', body: { page:, learner_id:, training_id:, status:, sort: }) parse_response!(response, 'learner_trainings') end |