Class: Rafflesia::ReleaseAlias
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ReleaseAlias
- Defined in:
- lib/rafflesia/registry/release_alias.rb
Constant Summary collapse
- HASH_ATTRS =
{ generation: :generation, name: :name, release_id: :release_id, updated_at: :updated_at }.freeze
Instance Attribute Summary collapse
-
#generation ⇒ Object
Returns the value of attribute generation.
-
#name ⇒ Object
Returns the value of attribute name.
-
#release_id ⇒ Object
Returns the value of attribute release_id.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(json) ⇒ ReleaseAlias
constructor
A new instance of ReleaseAlias.
Constructor Details
#initialize(json) ⇒ ReleaseAlias
Returns a new instance of ReleaseAlias.
21 22 23 24 25 26 27 28 |
# File 'lib/rafflesia/registry/release_alias.rb', line 21 def initialize(json) super() hash = self.class.normalize(json) @generation = hash[:generation] @name = hash[:name] @release_id = hash[:release_id] @updated_at = hash[:updated_at] end |
Instance Attribute Details
#generation ⇒ Object
Returns the value of attribute generation.
15 16 17 |
# File 'lib/rafflesia/registry/release_alias.rb', line 15 def generation @generation end |
#name ⇒ Object
Returns the value of attribute name.
15 16 17 |
# File 'lib/rafflesia/registry/release_alias.rb', line 15 def name @name end |
#release_id ⇒ Object
Returns the value of attribute release_id.
15 16 17 |
# File 'lib/rafflesia/registry/release_alias.rb', line 15 def release_id @release_id end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
15 16 17 |
# File 'lib/rafflesia/registry/release_alias.rb', line 15 def updated_at @updated_at end |