Class: Rafflesia::ArtifactManifestImportRequest

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

Instance Method Summary collapse

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_networkObject

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_structuresObject

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_pathObject

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