Class: KazeClient::CancelJobRequest
- Inherits:
-
Utils::FinalRequest
- Object
- Request
- Utils::FinalRequest
- KazeClient::CancelJobRequest
- Includes:
- Utils::AuthentifiedRequest
- Defined in:
- lib/kaze_client/request/requests/jobs/cancel_job_request.rb
Overview
Cancel a job.
Constant Summary
Constants inherited from Request
Instance Attribute Summary
Attributes included from Utils::AuthentifiedRequest
Attributes inherited from Request
#body, #headers, #method, #query, #url
Instance Method Summary collapse
-
#initialize(job_id, cancel_reason_id) ⇒ CancelJobRequest
constructor
A new instance of CancelJobRequest.
Methods included from Utils::AuthentifiedRequest
Methods inherited from Request
Constructor Details
#initialize(job_id, cancel_reason_id) ⇒ CancelJobRequest
Returns a new instance of CancelJobRequest.
15 16 17 18 19 20 21 |
# File 'lib/kaze_client/request/requests/jobs/cancel_job_request.rb', line 15 def initialize(job_id, cancel_reason_id) super(:put, "api/jobs/#{job_id}/cancel") @body = { job: { cancel_reason_id: cancel_reason_id } } end |