Class: Retab::CreateWorkflowRunRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::CreateWorkflowRunRequest
- 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
-
#documents ⇒ Object
Returns the value of attribute documents.
-
#json_inputs ⇒ Object
Returns the value of attribute json_inputs.
-
#version ⇒ Object
Returns the value of attribute version.
-
#workflow_id ⇒ Object
Returns the value of attribute workflow_id.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ CreateWorkflowRunRequest
constructor
A new instance of CreateWorkflowRunRequest.
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
#documents ⇒ Object
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_inputs ⇒ Object
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 |
#version ⇒ Object
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_id ⇒ Object
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 |