Class: Rafflesia::ArchiveAssociationArtifactRef
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ArchiveAssociationArtifactRef
- Defined in:
- lib/rafflesia/artifacts/archive_association_artifact_ref.rb
Constant Summary collapse
- HASH_ATTRS =
{ archive_path: :archive_path, map_id: :map_id, name: :name, object_id: :object_id, structure_id: :structure_id }.freeze
Instance Attribute Summary collapse
-
#archive_path ⇒ Object
Returns the value of attribute archive_path.
-
#map_id ⇒ Object
Returns the value of attribute map_id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#object_id ⇒ Object
Returns the value of attribute object_id.
-
#structure_id ⇒ Object
Returns the value of attribute structure_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ ArchiveAssociationArtifactRef
constructor
A new instance of ArchiveAssociationArtifactRef.
Constructor Details
#initialize(json) ⇒ ArchiveAssociationArtifactRef
Returns a new instance of ArchiveAssociationArtifactRef.
23 24 25 26 27 28 29 30 31 |
# File 'lib/rafflesia/artifacts/archive_association_artifact_ref.rb', line 23 def initialize(json) super() hash = self.class.normalize(json) @archive_path = hash[:archive_path] @map_id = hash[:map_id] @name = hash[:name] @object_id = hash[:object_id] @structure_id = hash[:structure_id] end |
Instance Attribute Details
#archive_path ⇒ Object
Returns the value of attribute archive_path.
16 17 18 |
# File 'lib/rafflesia/artifacts/archive_association_artifact_ref.rb', line 16 def archive_path @archive_path end |
#map_id ⇒ Object
Returns the value of attribute map_id.
16 17 18 |
# File 'lib/rafflesia/artifacts/archive_association_artifact_ref.rb', line 16 def map_id @map_id end |
#name ⇒ Object
Returns the value of attribute name.
16 17 18 |
# File 'lib/rafflesia/artifacts/archive_association_artifact_ref.rb', line 16 def name @name end |
#object_id ⇒ Object
Returns the value of attribute object_id.
16 17 18 |
# File 'lib/rafflesia/artifacts/archive_association_artifact_ref.rb', line 16 def object_id @object_id end |
#structure_id ⇒ Object
Returns the value of attribute structure_id.
16 17 18 |
# File 'lib/rafflesia/artifacts/archive_association_artifact_ref.rb', line 16 def structure_id @structure_id end |