Class: Rafflesia::OnboardingStage
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OnboardingStage
- Defined in:
- lib/rafflesia/registry/onboarding_stage.rb
Constant Summary collapse
- HASH_ATTRS =
{ detail: :detail, expected: :expected, id: :id, label: :label, observed: :observed, status: :status }.freeze
Instance Attribute Summary collapse
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#expected ⇒ Object
Returns the value of attribute expected.
-
#id ⇒ Object
Returns the value of attribute id.
-
#label ⇒ Object
Returns the value of attribute label.
-
#observed ⇒ Object
Returns the value of attribute observed.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(json) ⇒ OnboardingStage
constructor
A new instance of OnboardingStage.
Constructor Details
#initialize(json) ⇒ OnboardingStage
Returns a new instance of OnboardingStage.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/registry/onboarding_stage.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @detail = hash[:detail] @expected = hash[:expected] @id = hash[:id] @label = hash[:label] @observed = hash[:observed] @status = hash[:status] end |
Instance Attribute Details
#detail ⇒ Object
Returns the value of attribute detail.
17 18 19 |
# File 'lib/rafflesia/registry/onboarding_stage.rb', line 17 def detail @detail end |
#expected ⇒ Object
Returns the value of attribute expected.
17 18 19 |
# File 'lib/rafflesia/registry/onboarding_stage.rb', line 17 def expected @expected end |
#id ⇒ Object
Returns the value of attribute id.
17 18 19 |
# File 'lib/rafflesia/registry/onboarding_stage.rb', line 17 def id @id end |
#label ⇒ Object
Returns the value of attribute label.
17 18 19 |
# File 'lib/rafflesia/registry/onboarding_stage.rb', line 17 def label @label end |
#observed ⇒ Object
Returns the value of attribute observed.
17 18 19 |
# File 'lib/rafflesia/registry/onboarding_stage.rb', line 17 def observed @observed end |
#status ⇒ Object
Returns the value of attribute status.
17 18 19 |
# File 'lib/rafflesia/registry/onboarding_stage.rb', line 17 def status @status end |