Class: Rafflesia::ObjectArtifactCacheInspectRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/object_artifacts/object_artifact_cache_inspect_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  manifest_object_id: :manifest_object_id,
  manifest_path: :manifest_path,
  shards: :shards,
  target_dir: :target_dir
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ObjectArtifactCacheInspectRequest

Returns a new instance of ObjectArtifactCacheInspectRequest.



21
22
23
24
25
26
27
28
# File 'lib/rafflesia/object_artifacts/object_artifact_cache_inspect_request.rb', line 21

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @manifest_object_id = hash[:manifest_object_id]
  @manifest_path = hash[:manifest_path]
  @shards = (hash[:shards] || [])
  @target_dir = hash[:target_dir]
end

Instance Attribute Details

#manifest_object_idObject

Returns the value of attribute manifest_object_id.



15
16
17
# File 'lib/rafflesia/object_artifacts/object_artifact_cache_inspect_request.rb', line 15

def manifest_object_id
  @manifest_object_id
end

#manifest_pathObject

Returns the value of attribute manifest_path.



15
16
17
# File 'lib/rafflesia/object_artifacts/object_artifact_cache_inspect_request.rb', line 15

def manifest_path
  @manifest_path
end

#shardsObject

Returns the value of attribute shards.



15
16
17
# File 'lib/rafflesia/object_artifacts/object_artifact_cache_inspect_request.rb', line 15

def shards
  @shards
end

#target_dirObject

Returns the value of attribute target_dir.



15
16
17
# File 'lib/rafflesia/object_artifacts/object_artifact_cache_inspect_request.rb', line 15

def target_dir
  @target_dir
end