Class: KazeClient::JobWorkflowRequest

Inherits:
Utils::FinalRequest show all
Includes:
Utils::AuthentifiedRequest
Defined in:
lib/kaze_client/request/requests/jobs/job_workflow_request.rb

Overview

Request the details about a specific workflow.

Constant Summary

Constants inherited from Request

Request::DEFAULT_HEADERS

Instance Attribute Summary collapse

Attributes included from Utils::AuthentifiedRequest

#token

Attributes inherited from Request

#body, #headers, #method, #query, #url

Instance Method Summary collapse

Methods included from Utils::AuthentifiedRequest

#with_token

Methods inherited from Request

#error_for, #parameters

Constructor Details

#initialize(id) ⇒ JobWorkflowRequest

Returns a new instance of JobWorkflowRequest.

Parameters:

  • id (String)

    Set the id of the workflow to request

Since:

  • 0.1.0



19
20
21
22
23
24
25
# File 'lib/kaze_client/request/requests/jobs/job_workflow_request.rb', line 19

def initialize(id)
  super(:get, "api/job_workflows/#{id}")

  @id      = id
  @query   = {}
  @filters = {}
end

Instance Attribute Details

#idString (readonly)

Returns The id of the workflow to request.

Returns:

  • (String)

    The id of the workflow to request

Since:

  • 0.1.0



16
17
18
# File 'lib/kaze_client/request/requests/jobs/job_workflow_request.rb', line 16

def id
  @id
end