Class: Retab::CreateBlockExecutionRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::CreateBlockExecutionRequest
- Defined in:
- lib/retab/workflow_block_executions/create_block_execution_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ run_id: :run_id, block_id: :block_id, step_id: :step_id, n_consensus: :n_consensus, check_eligibility: :check_eligibility }.freeze
Instance Attribute Summary collapse
-
#block_id ⇒ Object
Returns the value of attribute block_id.
-
#check_eligibility ⇒ Object
Returns the value of attribute check_eligibility.
-
#n_consensus ⇒ Object
Returns the value of attribute n_consensus.
-
#run_id ⇒ Object
Returns the value of attribute run_id.
-
#step_id ⇒ Object
Returns the value of attribute step_id.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ CreateBlockExecutionRequest
constructor
A new instance of CreateBlockExecutionRequest.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ CreateBlockExecutionRequest
Returns a new instance of CreateBlockExecutionRequest.
23 24 25 26 27 28 29 30 |
# File 'lib/retab/workflow_block_executions/create_block_execution_request.rb', line 23 def initialize(json) hash = self.class.normalize(json) @run_id = hash[:run_id] @block_id = hash[:block_id] @step_id = hash[:step_id] @n_consensus = hash[:n_consensus] @check_eligibility = hash[:check_eligibility] end |
Instance Attribute Details
#block_id ⇒ Object
Returns the value of attribute block_id.
16 17 18 |
# File 'lib/retab/workflow_block_executions/create_block_execution_request.rb', line 16 def block_id @block_id end |
#check_eligibility ⇒ Object
Returns the value of attribute check_eligibility.
16 17 18 |
# File 'lib/retab/workflow_block_executions/create_block_execution_request.rb', line 16 def check_eligibility @check_eligibility end |
#n_consensus ⇒ Object
Returns the value of attribute n_consensus.
16 17 18 |
# File 'lib/retab/workflow_block_executions/create_block_execution_request.rb', line 16 def n_consensus @n_consensus end |
#run_id ⇒ Object
Returns the value of attribute run_id.
16 17 18 |
# File 'lib/retab/workflow_block_executions/create_block_execution_request.rb', line 16 def run_id @run_id end |
#step_id ⇒ Object
Returns the value of attribute step_id.
16 17 18 |
# File 'lib/retab/workflow_block_executions/create_block_execution_request.rb', line 16 def step_id @step_id end |