Class: KazeClient::CompleteStepRequest
- Inherits:
-
Utils::FinalRequest
- Object
- Request
- Utils::FinalRequest
- KazeClient::CompleteStepRequest
- Includes:
- Utils::AuthentifiedRequest
- Defined in:
- lib/kaze_client/request/requests/jobs/complete_step_request.rb
Overview
Validate a step from a job.
Constant Summary
Constants inherited from Request
Instance Attribute Summary collapse
-
#job_id ⇒ String
readonly
The id of the targeted job.
-
#step_id ⇒ Hash
readonly
The step needed to be completed.
Attributes included from Utils::AuthentifiedRequest
Attributes inherited from Request
#body, #headers, #method, #query, #url
Instance Method Summary collapse
-
#initialize(job_id, step_id) ⇒ CompleteStepRequest
constructor
KazeClient::CompleteStepRequest.new(‘5295d1c4-2c25-4fc2-8bad-e714f2907f0d’, ‘job_info’) => The step job_info is now completed.
Methods included from Utils::AuthentifiedRequest
Methods inherited from Request
Constructor Details
#initialize(job_id, step_id) ⇒ CompleteStepRequest
KazeClient::CompleteStepRequest.new(‘5295d1c4-2c25-4fc2-8bad-e714f2907f0d’, ‘job_info’)
> The step job_info is now completed.
24 25 26 27 28 29 30 31 32 |
# File 'lib/kaze_client/request/requests/jobs/complete_step_request.rb', line 24 def initialize(job_id, step_id) super(:put, "api/jobs/#{job_id}/cells/#{step_id}") @body = { data: { step_id => { completed: { value: true } } } } end |
Instance Attribute Details
#job_id ⇒ String (readonly)
Returns The id of the targeted job.
16 17 18 |
# File 'lib/kaze_client/request/requests/jobs/complete_step_request.rb', line 16 def job_id @job_id end |
#step_id ⇒ Hash (readonly)
Returns The step needed to be completed.
19 20 21 |
# File 'lib/kaze_client/request/requests/jobs/complete_step_request.rb', line 19 def step_id @step_id end |