Class: Retab::CompletedBlockExecutionLifecycle

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/retab/workflow_block_executions/completed_block_execution_lifecycle.rb

Constant Summary collapse

HASH_ATTRS =
{
  status: :status
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ CompletedBlockExecutionLifecycle

Returns a new instance of CompletedBlockExecutionLifecycle.



14
15
16
17
18
# File 'lib/retab/workflow_block_executions/completed_block_execution_lifecycle.rb', line 14

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @status = hash[:status].nil? ? "completed" : hash[:status]
end

Instance Attribute Details

#statusObject

Returns the value of attribute status.



12
13
14
# File 'lib/retab/workflow_block_executions/completed_block_execution_lifecycle.rb', line 12

def status
  @status
end