Class: Retab::QueuedStepLifecycle

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/workflow_steps/queued_step_lifecycle.rb

Constant Summary collapse

HASH_ATTRS =
{
  status: :status
}.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) ⇒ QueuedStepLifecycle

Returns a new instance of QueuedStepLifecycle.



14
15
16
17
# File 'lib/retab/workflow_steps/queued_step_lifecycle.rb', line 14

def initialize(json)
  hash = self.class.normalize(json)
  @status = hash[:status]
end

Instance Attribute Details

#statusObject

Returns the value of attribute status.



12
13
14
# File 'lib/retab/workflow_steps/queued_step_lifecycle.rb', line 12

def status
  @status
end