Class: Rafflesia::ArchiveAssociationArtifactRef

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

Instance Method Summary collapse

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_pathObject

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_idObject

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

#nameObject

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_idObject

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_idObject

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