Class: Retab::CreateWorkflowRunRequest

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/workflow_runs/create_workflow_run_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  workflow_id: :workflow_id,
  documents: :documents,
  json_inputs: :json_inputs,
  version: :version
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

deep_symbolize, #inspect, normalize, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ CreateWorkflowRunRequest

Returns a new instance of CreateWorkflowRunRequest.



22
23
24
25
26
27
28
29
# File 'lib/retab/workflow_runs/create_workflow_run_request.rb', line 22

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @workflow_id = hash[:workflow_id]
  @documents = hash[:documents] || {}
  @json_inputs = hash[:json_inputs] || {}
  @version = hash[:version]
end

Instance Attribute Details

#documentsObject

Returns the value of attribute documents.



15
16
17
# File 'lib/retab/workflow_runs/create_workflow_run_request.rb', line 15

def documents
  @documents
end

#json_inputsObject

Returns the value of attribute json_inputs.



15
16
17
# File 'lib/retab/workflow_runs/create_workflow_run_request.rb', line 15

def json_inputs
  @json_inputs
end

#versionObject

Returns the value of attribute version.



15
16
17
# File 'lib/retab/workflow_runs/create_workflow_run_request.rb', line 15

def version
  @version
end

#workflow_idObject

Returns the value of attribute workflow_id.



15
16
17
# File 'lib/retab/workflow_runs/create_workflow_run_request.rb', line 15

def workflow_id
  @workflow_id
end