Class: Rafflesia::ObjectArtifactCollectionData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ObjectArtifactCollectionData
- 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
-
#dependency_manifest_ids ⇒ Object
Returns the value of attribute dependency_manifest_ids.
-
#layout_version ⇒ Object
Returns the value of attribute layout_version.
-
#license ⇒ Object
Returns the value of attribute license.
-
#mount_path ⇒ Object
Returns the value of attribute mount_path.
-
#shard_target_size_bytes ⇒ Object
Returns the value of attribute shard_target_size_bytes.
-
#source_uri ⇒ Object
Returns the value of attribute source_uri.
Instance Method Summary collapse
-
#initialize(json) ⇒ ObjectArtifactCollectionData
constructor
A new instance of ObjectArtifactCollectionData.
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_ids ⇒ Object
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_version ⇒ Object
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 |
#license ⇒ Object
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_path ⇒ Object
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_bytes ⇒ Object
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_uri ⇒ Object
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 |