Class: Rafflesia::OnboardingStage

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

Instance Method Summary collapse

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

#detailObject

Returns the value of attribute detail.



17
18
19
# File 'lib/rafflesia/registry/onboarding_stage.rb', line 17

def detail
  @detail
end

#expectedObject

Returns the value of attribute expected.



17
18
19
# File 'lib/rafflesia/registry/onboarding_stage.rb', line 17

def expected
  @expected
end

#idObject

Returns the value of attribute id.



17
18
19
# File 'lib/rafflesia/registry/onboarding_stage.rb', line 17

def id
  @id
end

#labelObject

Returns the value of attribute label.



17
18
19
# File 'lib/rafflesia/registry/onboarding_stage.rb', line 17

def label
  @label
end

#observedObject

Returns the value of attribute observed.



17
18
19
# File 'lib/rafflesia/registry/onboarding_stage.rb', line 17

def observed
  @observed
end

#statusObject

Returns the value of attribute status.



17
18
19
# File 'lib/rafflesia/registry/onboarding_stage.rb', line 17

def status
  @status
end