Class: Retab::ExperimentDocumentCaptureRequest

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/workflow_experiments/experiment_document_capture_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  workflow_run_id: :workflow_run_id,
  step_id: :step_id
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

#inspect, normalize, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ ExperimentDocumentCaptureRequest

Returns a new instance of ExperimentDocumentCaptureRequest.



17
18
19
20
21
# File 'lib/retab/workflow_experiments/experiment_document_capture_request.rb', line 17

def initialize(json)
  hash = self.class.normalize(json)
  @workflow_run_id = hash[:workflow_run_id]
  @step_id = hash[:step_id]
end

Instance Attribute Details

#step_idObject

Returns the value of attribute step_id.



13
14
15
# File 'lib/retab/workflow_experiments/experiment_document_capture_request.rb', line 13

def step_id
  @step_id
end

#workflow_run_idObject

Returns the value of attribute workflow_run_id.



13
14
15
# File 'lib/retab/workflow_experiments/experiment_document_capture_request.rb', line 13

def workflow_run_id
  @workflow_run_id
end