Class: Rafflesia::ObjectArtifactManifestSummary

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

Instance Method Summary collapse

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_countObject

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_hashObject

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_nameObject

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_versionObject

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_collectionObject

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

#kindObject

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_idObject

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_idObject

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_pathObject

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

#nameObject

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_countObject

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_nameObject

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

#versionObject

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