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, metadata: :metadata }.freeze
Instance Attribute Summary collapse
-
#documents ⇒ Object
Returns the value of attribute documents.
-
#json_inputs ⇒ Object
Returns the value of attribute json_inputs.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#version ⇒ Object
Returns the value of attribute version.
-
#workflow_id ⇒ Object
Returns the value of attribute workflow_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ CreateWorkflowRunRequest
constructor
A new instance of CreateWorkflowRunRequest.
Constructor Details
#initialize(json) ⇒ CreateWorkflowRunRequest
Returns a new instance of CreateWorkflowRunRequest.
24 25 26 27 28 29 30 31 32 |
# File 'lib/retab/workflow_runs/create_workflow_run_request.rb', line 24 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].nil? ? "production" : hash[:version] @metadata = hash[:metadata] || {} end |
Instance Attribute Details
#documents ⇒ Object
Returns the value of attribute documents.
16 17 18 |
# File 'lib/retab/workflow_runs/create_workflow_run_request.rb', line 16 def documents @documents end |
#json_inputs ⇒ Object
Returns the value of attribute json_inputs.
16 17 18 |
# File 'lib/retab/workflow_runs/create_workflow_run_request.rb', line 16 def json_inputs @json_inputs end |
#metadata ⇒ Object
Returns the value of attribute metadata.
16 17 18 |
# File 'lib/retab/workflow_runs/create_workflow_run_request.rb', line 16 def @metadata end |
#version ⇒ Object
Returns the value of attribute version.
16 17 18 |
# File 'lib/retab/workflow_runs/create_workflow_run_request.rb', line 16 def version @version end |
#workflow_id ⇒ Object
Returns the value of attribute workflow_id.
16 17 18 |
# File 'lib/retab/workflow_runs/create_workflow_run_request.rb', line 16 def workflow_id @workflow_id end |