Class: Retab::CreateBlockExecutionRequest

Inherits:
Types::BaseModel show all
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

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) ⇒ 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_idObject

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_eligibilityObject

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_consensusObject

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_idObject

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_idObject

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