Class: Retab::ErrorBlockExecutionLifecycle

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

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

#messageObject

Returns the value of attribute message.



13
14
15
# File 'lib/retab/workflow_block_executions/error_block_execution_lifecycle.rb', line 13

def message
  @message
end

#statusObject

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