Class: Rafflesia::ReleaseAlias

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

Instance Method Summary collapse

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

#generationObject

Returns the value of attribute generation.



15
16
17
# File 'lib/rafflesia/registry/release_alias.rb', line 15

def generation
  @generation
end

#nameObject

Returns the value of attribute name.



15
16
17
# File 'lib/rafflesia/registry/release_alias.rb', line 15

def name
  @name
end

#release_idObject

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_atObject

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