Class: Rafflesia::RevisionPointer
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::RevisionPointer
- 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
-
#generation ⇒ Object
Returns the value of attribute generation.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#name ⇒ Object
Returns the value of attribute name.
-
#revision_id ⇒ Object
Returns the value of attribute revision_id.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(json) ⇒ RevisionPointer
constructor
A new instance of RevisionPointer.
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
#generation ⇒ Object
Returns the value of attribute generation.
16 17 18 |
# File 'lib/rafflesia/registry/revision_pointer.rb', line 16 def generation @generation end |
#kind ⇒ Object
Returns the value of attribute kind.
16 17 18 |
# File 'lib/rafflesia/registry/revision_pointer.rb', line 16 def kind @kind end |
#name ⇒ Object
Returns the value of attribute name.
16 17 18 |
# File 'lib/rafflesia/registry/revision_pointer.rb', line 16 def name @name end |
#revision_id ⇒ Object
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_at ⇒ Object
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 |