Class: Rafflesia::ArtifactMaterializeRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/artifacts/artifact_materialize_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  allow_network: :allow_network,
  associate_map_models: :associate_map_models,
  download_emdb_maps: :download_emdb_maps,
  manifest_path: :manifest_path,
  max_download_bytes: :max_download_bytes,
  output_dir: :output_dir
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ArtifactMaterializeRequest

Returns a new instance of ArtifactMaterializeRequest.



25
26
27
28
29
30
31
32
33
34
# File 'lib/rafflesia/artifacts/artifact_materialize_request.rb', line 25

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @allow_network = hash[:allow_network]
  @associate_map_models = hash[:associate_map_models]
  @download_emdb_maps = hash[:download_emdb_maps]
  @manifest_path = hash[:manifest_path]
  @max_download_bytes = hash[:max_download_bytes]
  @output_dir = hash[:output_dir]
end

Instance Attribute Details

#allow_networkObject

Returns the value of attribute allow_network.



17
18
19
# File 'lib/rafflesia/artifacts/artifact_materialize_request.rb', line 17

def allow_network
  @allow_network
end

#associate_map_modelsObject

Returns the value of attribute associate_map_models.



17
18
19
# File 'lib/rafflesia/artifacts/artifact_materialize_request.rb', line 17

def associate_map_models
  @associate_map_models
end

#download_emdb_mapsObject

Returns the value of attribute download_emdb_maps.



17
18
19
# File 'lib/rafflesia/artifacts/artifact_materialize_request.rb', line 17

def download_emdb_maps
  @download_emdb_maps
end

#manifest_pathObject

Returns the value of attribute manifest_path.



17
18
19
# File 'lib/rafflesia/artifacts/artifact_materialize_request.rb', line 17

def manifest_path
  @manifest_path
end

#max_download_bytesObject

Returns the value of attribute max_download_bytes.



17
18
19
# File 'lib/rafflesia/artifacts/artifact_materialize_request.rb', line 17

def max_download_bytes
  @max_download_bytes
end

#output_dirObject

Returns the value of attribute output_dir.



17
18
19
# File 'lib/rafflesia/artifacts/artifact_materialize_request.rb', line 17

def output_dir
  @output_dir
end