Class: Retab::CancelledStepLifecycle

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

Constant Summary collapse

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

Returns a new instance of CancelledStepLifecycle.



17
18
19
20
21
# File 'lib/retab/workflow_steps/cancelled_step_lifecycle.rb', line 17

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

Instance Attribute Details

#reasonObject

Returns the value of attribute reason.



13
14
15
# File 'lib/retab/workflow_steps/cancelled_step_lifecycle.rb', line 13

def reason
  @reason
end

#statusObject

Returns the value of attribute status.



13
14
15
# File 'lib/retab/workflow_steps/cancelled_step_lifecycle.rb', line 13

def status
  @status
end