Class: Rafflesia::ArtifactManifestImportRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ArtifactManifestImportRequest
- Defined in:
- lib/rafflesia/artifacts/artifact_manifest_import_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ allow_network: :allow_network, fetch_structures: :fetch_structures, manifest_path: :manifest_path }.freeze
Instance Attribute Summary collapse
-
#allow_network ⇒ Object
Returns the value of attribute allow_network.
-
#fetch_structures ⇒ Object
Returns the value of attribute fetch_structures.
-
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
Instance Method Summary collapse
-
#initialize(json) ⇒ ArtifactManifestImportRequest
constructor
A new instance of ArtifactManifestImportRequest.
Constructor Details
#initialize(json) ⇒ ArtifactManifestImportRequest
Returns a new instance of ArtifactManifestImportRequest.
19 20 21 22 23 24 25 |
# File 'lib/rafflesia/artifacts/artifact_manifest_import_request.rb', line 19 def initialize(json) super() hash = self.class.normalize(json) @allow_network = hash[:allow_network] @fetch_structures = hash[:fetch_structures] @manifest_path = hash[:manifest_path] end |
Instance Attribute Details
#allow_network ⇒ Object
Returns the value of attribute allow_network.
14 15 16 |
# File 'lib/rafflesia/artifacts/artifact_manifest_import_request.rb', line 14 def allow_network @allow_network end |
#fetch_structures ⇒ Object
Returns the value of attribute fetch_structures.
14 15 16 |
# File 'lib/rafflesia/artifacts/artifact_manifest_import_request.rb', line 14 def fetch_structures @fetch_structures end |
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
14 15 16 |
# File 'lib/rafflesia/artifacts/artifact_manifest_import_request.rb', line 14 def manifest_path @manifest_path end |