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