Class: Rafflesia::OnboardingStatus
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OnboardingStatus
- Defined in:
- lib/rafflesia/registry/onboarding_status.rb
Constant Summary collapse
- HASH_ATTRS =
{ mount_id: :mount_id, organization_id: :organization_id, resource_group_id: :resource_group_id, snapshot_digest: :snapshot_digest, stages: :stages, status: :status, updated_at: :updated_at }.freeze
Instance Attribute Summary collapse
-
#mount_id ⇒ Object
Returns the value of attribute mount_id.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#resource_group_id ⇒ Object
Returns the value of attribute resource_group_id.
-
#snapshot_digest ⇒ Object
Returns the value of attribute snapshot_digest.
-
#stages ⇒ Object
Returns the value of attribute stages.
-
#status ⇒ Object
Returns the value of attribute status.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(json) ⇒ OnboardingStatus
constructor
A new instance of OnboardingStatus.
Constructor Details
#initialize(json) ⇒ OnboardingStatus
Returns a new instance of OnboardingStatus.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/registry/onboarding_status.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @mount_id = hash[:mount_id] @organization_id = hash[:organization_id] @resource_group_id = hash[:resource_group_id] @snapshot_digest = hash[:snapshot_digest] @stages = (hash[:stages] || []).map { |item| item ? Rafflesia::OnboardingStage.new(item) : nil } @status = hash[:status] @updated_at = hash[:updated_at] end |
Instance Attribute Details
#mount_id ⇒ Object
Returns the value of attribute mount_id.
18 19 20 |
# File 'lib/rafflesia/registry/onboarding_status.rb', line 18 def mount_id @mount_id end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
18 19 20 |
# File 'lib/rafflesia/registry/onboarding_status.rb', line 18 def organization_id @organization_id end |
#resource_group_id ⇒ Object
Returns the value of attribute resource_group_id.
18 19 20 |
# File 'lib/rafflesia/registry/onboarding_status.rb', line 18 def resource_group_id @resource_group_id end |
#snapshot_digest ⇒ Object
Returns the value of attribute snapshot_digest.
18 19 20 |
# File 'lib/rafflesia/registry/onboarding_status.rb', line 18 def snapshot_digest @snapshot_digest end |
#stages ⇒ Object
Returns the value of attribute stages.
18 19 20 |
# File 'lib/rafflesia/registry/onboarding_status.rb', line 18 def stages @stages end |
#status ⇒ Object
Returns the value of attribute status.
18 19 20 |
# File 'lib/rafflesia/registry/onboarding_status.rb', line 18 def status @status end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
18 19 20 |
# File 'lib/rafflesia/registry/onboarding_status.rb', line 18 def updated_at @updated_at end |