Class: Rafflesia::ObjectArtifactCollectionData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/objects/object_artifact_collection_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  dependency_manifest_ids: :dependency_manifest_ids,
  layout_version: :layout_version,
  license: :license,
  mount_path: :mount_path,
  shard_target_size_bytes: :shard_target_size_bytes,
  source_uri: :source_uri
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ObjectArtifactCollectionData

Returns a new instance of ObjectArtifactCollectionData.



25
26
27
28
29
30
31
32
33
34
# File 'lib/rafflesia/objects/object_artifact_collection_data.rb', line 25

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @dependency_manifest_ids = (hash[:dependency_manifest_ids] || [])
  @layout_version = hash[:layout_version]
  @license = hash[:license]
  @mount_path = hash[:mount_path]
  @shard_target_size_bytes = hash[:shard_target_size_bytes]
  @source_uri = hash[:source_uri]
end

Instance Attribute Details

#dependency_manifest_idsObject

Returns the value of attribute dependency_manifest_ids.



17
18
19
# File 'lib/rafflesia/objects/object_artifact_collection_data.rb', line 17

def dependency_manifest_ids
  @dependency_manifest_ids
end

#layout_versionObject

Returns the value of attribute layout_version.



17
18
19
# File 'lib/rafflesia/objects/object_artifact_collection_data.rb', line 17

def layout_version
  @layout_version
end

#licenseObject

Returns the value of attribute license.



17
18
19
# File 'lib/rafflesia/objects/object_artifact_collection_data.rb', line 17

def license
  @license
end

#mount_pathObject

Returns the value of attribute mount_path.



17
18
19
# File 'lib/rafflesia/objects/object_artifact_collection_data.rb', line 17

def mount_path
  @mount_path
end

#shard_target_size_bytesObject

Returns the value of attribute shard_target_size_bytes.



17
18
19
# File 'lib/rafflesia/objects/object_artifact_collection_data.rb', line 17

def shard_target_size_bytes
  @shard_target_size_bytes
end

#source_uriObject

Returns the value of attribute source_uri.



17
18
19
# File 'lib/rafflesia/objects/object_artifact_collection_data.rb', line 17

def source_uri
  @source_uri
end