Class: Rafflesia::ObjectArtifactMaterializeRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ObjectArtifactMaterializeRequest
- Defined in:
- lib/rafflesia/object_artifacts/object_artifact_materialize_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ manifest_object_id: :manifest_object_id, manifest_path: :manifest_path, shards: :shards, target_dir: :target_dir, verify: :verify }.freeze
Instance Attribute Summary collapse
-
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
-
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
-
#shards ⇒ Object
Returns the value of attribute shards.
-
#target_dir ⇒ Object
Returns the value of attribute target_dir.
-
#verify ⇒ Object
Returns the value of attribute verify.
Instance Method Summary collapse
-
#initialize(json) ⇒ ObjectArtifactMaterializeRequest
constructor
A new instance of ObjectArtifactMaterializeRequest.
Constructor Details
#initialize(json) ⇒ ObjectArtifactMaterializeRequest
Returns a new instance of ObjectArtifactMaterializeRequest.
23 24 25 26 27 28 29 30 31 |
# File 'lib/rafflesia/object_artifacts/object_artifact_materialize_request.rb', line 23 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] @verify = hash[:verify] end |
Instance Attribute Details
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
16 17 18 |
# File 'lib/rafflesia/object_artifacts/object_artifact_materialize_request.rb', line 16 def manifest_object_id @manifest_object_id end |
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
16 17 18 |
# File 'lib/rafflesia/object_artifacts/object_artifact_materialize_request.rb', line 16 def manifest_path @manifest_path end |
#shards ⇒ Object
Returns the value of attribute shards.
16 17 18 |
# File 'lib/rafflesia/object_artifacts/object_artifact_materialize_request.rb', line 16 def shards @shards end |
#target_dir ⇒ Object
Returns the value of attribute target_dir.
16 17 18 |
# File 'lib/rafflesia/object_artifacts/object_artifact_materialize_request.rb', line 16 def target_dir @target_dir end |
#verify ⇒ Object
Returns the value of attribute verify.
16 17 18 |
# File 'lib/rafflesia/object_artifacts/object_artifact_materialize_request.rb', line 16 def verify @verify end |