Class: Retab::CancelledStepLifecycle
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::CancelledStepLifecycle
- Defined in:
- lib/retab/workflow_steps/cancelled_step_lifecycle.rb
Constant Summary collapse
- HASH_ATTRS =
{ status: :status, reason: :reason }.freeze
Instance Attribute Summary collapse
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#status ⇒ Object
Returns the value of attribute status.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ CancelledStepLifecycle
constructor
A new instance of CancelledStepLifecycle.
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
#reason ⇒ Object
Returns the value of attribute reason.
13 14 15 |
# File 'lib/retab/workflow_steps/cancelled_step_lifecycle.rb', line 13 def reason @reason end |
#status ⇒ Object
Returns the value of attribute status.
13 14 15 |
# File 'lib/retab/workflow_steps/cancelled_step_lifecycle.rb', line 13 def status @status end |