Class: Retab::QueuedBlockExecutionLifecycle
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::QueuedBlockExecutionLifecycle
- Defined in:
- lib/retab/workflow_block_executions/queued_block_execution_lifecycle.rb
Constant Summary collapse
- HASH_ATTRS =
{ status: :status }.freeze
Instance Attribute Summary collapse
-
#status ⇒ Object
Returns the value of attribute status.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ QueuedBlockExecutionLifecycle
constructor
A new instance of QueuedBlockExecutionLifecycle.
Methods inherited from Types::BaseModel
deep_symbolize, #inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ QueuedBlockExecutionLifecycle
Returns a new instance of QueuedBlockExecutionLifecycle.
14 15 16 17 18 |
# File 'lib/retab/workflow_block_executions/queued_block_execution_lifecycle.rb', line 14 def initialize(json) super() hash = self.class.normalize(json) @status = hash[:status].nil? ? "queued" : hash[:status] end |
Instance Attribute Details
#status ⇒ Object
Returns the value of attribute status.
12 13 14 |
# File 'lib/retab/workflow_block_executions/queued_block_execution_lifecycle.rb', line 12 def status @status end |