Class: Rafflesia::ReleaseLifecycle
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ReleaseLifecycle
- Defined in:
- lib/rafflesia/foundry/release_lifecycle.rb
Constant Summary collapse
- HASH_ATTRS =
{ deprecated_at: :deprecated_at, published_at: :published_at, status: :status }.freeze
Instance Attribute Summary collapse
-
#deprecated_at ⇒ Object
Returns the value of attribute deprecated_at.
-
#published_at ⇒ Object
Returns the value of attribute published_at.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(json) ⇒ ReleaseLifecycle
constructor
A new instance of ReleaseLifecycle.
Constructor Details
#initialize(json) ⇒ ReleaseLifecycle
Returns a new instance of ReleaseLifecycle.
19 20 21 22 23 24 25 |
# File 'lib/rafflesia/foundry/release_lifecycle.rb', line 19 def initialize(json) super() hash = self.class.normalize(json) @deprecated_at = hash[:deprecated_at] @published_at = hash[:published_at] @status = hash[:status] end |
Instance Attribute Details
#deprecated_at ⇒ Object
Returns the value of attribute deprecated_at.
14 15 16 |
# File 'lib/rafflesia/foundry/release_lifecycle.rb', line 14 def deprecated_at @deprecated_at end |
#published_at ⇒ Object
Returns the value of attribute published_at.
14 15 16 |
# File 'lib/rafflesia/foundry/release_lifecycle.rb', line 14 def published_at @published_at end |
#status ⇒ Object
Returns the value of attribute status.
14 15 16 |
# File 'lib/rafflesia/foundry/release_lifecycle.rb', line 14 def status @status end |