Class: Rafflesia::ObjectArtifactManifestSummary
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ObjectArtifactManifestSummary
- Defined in:
- lib/rafflesia/object_artifacts/object_artifact_manifest_summary.rb
Constant Summary collapse
- HASH_ATTRS =
{ artifact_count: :artifact_count, content_hash: :content_hash, dataset_name: :dataset_name, dataset_version: :dataset_version, is_collection: :is_collection, kind: :kind, manifest_id: :manifest_id, manifest_object_id: :manifest_object_id, manifest_path: :manifest_path, name: :name, shard_count: :shard_count, tool_name: :tool_name, version: :version }.freeze
Instance Attribute Summary collapse
-
#artifact_count ⇒ Object
Returns the value of attribute artifact_count.
-
#content_hash ⇒ Object
Returns the value of attribute content_hash.
-
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
-
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
-
#is_collection ⇒ Object
Returns the value of attribute is_collection.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#manifest_id ⇒ Object
Returns the value of attribute manifest_id.
-
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
-
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
-
#name ⇒ Object
Returns the value of attribute name.
-
#shard_count ⇒ Object
Returns the value of attribute shard_count.
-
#tool_name ⇒ Object
Returns the value of attribute tool_name.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ ObjectArtifactManifestSummary
constructor
A new instance of ObjectArtifactManifestSummary.
Constructor Details
#initialize(json) ⇒ ObjectArtifactManifestSummary
Returns a new instance of ObjectArtifactManifestSummary.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/rafflesia/object_artifacts/object_artifact_manifest_summary.rb', line 39 def initialize(json) super() hash = self.class.normalize(json) @artifact_count = hash[:artifact_count] @content_hash = hash[:content_hash] @dataset_name = hash[:dataset_name] @dataset_version = hash[:dataset_version] @is_collection = hash[:is_collection] @kind = hash[:kind] @manifest_id = hash[:manifest_id] @manifest_object_id = hash[:manifest_object_id] @manifest_path = hash[:manifest_path] @name = hash[:name] @shard_count = hash[:shard_count] @tool_name = hash[:tool_name] @version = hash[:version] end |
Instance Attribute Details
#artifact_count ⇒ Object
Returns the value of attribute artifact_count.
24 25 26 |
# File 'lib/rafflesia/object_artifacts/object_artifact_manifest_summary.rb', line 24 def artifact_count @artifact_count end |
#content_hash ⇒ Object
Returns the value of attribute content_hash.
24 25 26 |
# File 'lib/rafflesia/object_artifacts/object_artifact_manifest_summary.rb', line 24 def content_hash @content_hash end |
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
24 25 26 |
# File 'lib/rafflesia/object_artifacts/object_artifact_manifest_summary.rb', line 24 def dataset_name @dataset_name end |
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
24 25 26 |
# File 'lib/rafflesia/object_artifacts/object_artifact_manifest_summary.rb', line 24 def dataset_version @dataset_version end |
#is_collection ⇒ Object
Returns the value of attribute is_collection.
24 25 26 |
# File 'lib/rafflesia/object_artifacts/object_artifact_manifest_summary.rb', line 24 def is_collection @is_collection end |
#kind ⇒ Object
Returns the value of attribute kind.
24 25 26 |
# File 'lib/rafflesia/object_artifacts/object_artifact_manifest_summary.rb', line 24 def kind @kind end |
#manifest_id ⇒ Object
Returns the value of attribute manifest_id.
24 25 26 |
# File 'lib/rafflesia/object_artifacts/object_artifact_manifest_summary.rb', line 24 def manifest_id @manifest_id end |
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
24 25 26 |
# File 'lib/rafflesia/object_artifacts/object_artifact_manifest_summary.rb', line 24 def manifest_object_id @manifest_object_id end |
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
24 25 26 |
# File 'lib/rafflesia/object_artifacts/object_artifact_manifest_summary.rb', line 24 def manifest_path @manifest_path end |
#name ⇒ Object
Returns the value of attribute name.
24 25 26 |
# File 'lib/rafflesia/object_artifacts/object_artifact_manifest_summary.rb', line 24 def name @name end |
#shard_count ⇒ Object
Returns the value of attribute shard_count.
24 25 26 |
# File 'lib/rafflesia/object_artifacts/object_artifact_manifest_summary.rb', line 24 def shard_count @shard_count end |
#tool_name ⇒ Object
Returns the value of attribute tool_name.
24 25 26 |
# File 'lib/rafflesia/object_artifacts/object_artifact_manifest_summary.rb', line 24 def tool_name @tool_name end |
#version ⇒ Object
Returns the value of attribute version.
24 25 26 |
# File 'lib/rafflesia/object_artifacts/object_artifact_manifest_summary.rb', line 24 def version @version end |