Class: Rafflesia::RevisionPointer

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/registry/revision_pointer.rb

Constant Summary collapse

HASH_ATTRS =
{
  generation: :generation,
  kind: :kind,
  name: :name,
  revision_id: :revision_id,
  updated_at: :updated_at
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ RevisionPointer

Returns a new instance of RevisionPointer.



23
24
25
26
27
28
29
30
31
# File 'lib/rafflesia/registry/revision_pointer.rb', line 23

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @generation = hash[:generation]
  @kind = hash[:kind]
  @name = hash[:name]
  @revision_id = hash[:revision_id]
  @updated_at = hash[:updated_at]
end

Instance Attribute Details

#generationObject

Returns the value of attribute generation.



16
17
18
# File 'lib/rafflesia/registry/revision_pointer.rb', line 16

def generation
  @generation
end

#kindObject

Returns the value of attribute kind.



16
17
18
# File 'lib/rafflesia/registry/revision_pointer.rb', line 16

def kind
  @kind
end

#nameObject

Returns the value of attribute name.



16
17
18
# File 'lib/rafflesia/registry/revision_pointer.rb', line 16

def name
  @name
end

#revision_idObject

Returns the value of attribute revision_id.



16
17
18
# File 'lib/rafflesia/registry/revision_pointer.rb', line 16

def revision_id
  @revision_id
end

#updated_atObject

Returns the value of attribute updated_at.



16
17
18
# File 'lib/rafflesia/registry/revision_pointer.rb', line 16

def updated_at
  @updated_at
end