Class: Rafflesia::SimulationGromacsInputMaterialization

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb

Constant Summary collapse

HASH_ATTRS =
{
  candidate: :candidate,
  downloaded_object: :downloaded_object,
  input: :input,
  local_path: :local_path,
  message: :message,
  normalized_path: :normalized_path,
  object: :object,
  producer: :producer,
  resolution: :resolution,
  script_path: :script_path,
  sha256: :sha_256,
  size_bytes: :size_bytes,
  status: :status,
  target_relative_path: :target_relative_path
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SimulationGromacsInputMaterialization

Returns a new instance of SimulationGromacsInputMaterialization.



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 41

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @candidate = hash[:candidate] ? Rafflesia::SimulationGromacsInventoryEntry.new(hash[:candidate]) : nil
  @downloaded_object = hash[:downloaded_object] ? Rafflesia::ObjectDownloadData.new(hash[:downloaded_object]) : nil
  @input = hash[:input] ? Rafflesia::SimulationGromacsFileRef.new(hash[:input]) : nil
  @local_path = hash[:local_path]
  @message = hash[:message]
  @normalized_path = hash[:normalized_path]
  @object = hash[:object] ? Rafflesia::ObjectRef.new(hash[:object]) : nil
  @producer = hash[:producer]
  @resolution = hash[:resolution] ? Rafflesia::SimulationGromacsInputResolution.new(hash[:resolution]) : nil
  @script_path = hash[:script_path]
  @sha_256 = hash[:sha256]
  @size_bytes = hash[:size_bytes]
  @status = hash[:status]
  @target_relative_path = hash[:target_relative_path]
end

Instance Attribute Details

#candidateObject

Returns the value of attribute candidate.



25
26
27
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25

def candidate
  @candidate
end

#downloaded_objectObject

Returns the value of attribute downloaded_object.



25
26
27
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25

def downloaded_object
  @downloaded_object
end

#inputObject

Returns the value of attribute input.



25
26
27
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25

def input
  @input
end

#local_pathObject

Returns the value of attribute local_path.



25
26
27
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25

def local_path
  @local_path
end

#messageObject

Returns the value of attribute message.



25
26
27
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25

def message
  @message
end

#normalized_pathObject

Returns the value of attribute normalized_path.



25
26
27
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25

def normalized_path
  @normalized_path
end

#objectObject

Returns the value of attribute object.



25
26
27
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25

def object
  @object
end

#producerObject

Returns the value of attribute producer.



25
26
27
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25

def producer
  @producer
end

#resolutionObject

Returns the value of attribute resolution.



25
26
27
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25

def resolution
  @resolution
end

#script_pathObject

Returns the value of attribute script_path.



25
26
27
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25

def script_path
  @script_path
end

#sha_256Object

Returns the value of attribute sha_256.



25
26
27
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25

def sha_256
  @sha_256
end

#size_bytesObject

Returns the value of attribute size_bytes.



25
26
27
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25

def size_bytes
  @size_bytes
end

#statusObject

Returns the value of attribute status.



25
26
27
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25

def status
  @status
end

#target_relative_pathObject

Returns the value of attribute target_relative_path.



25
26
27
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25

def target_relative_path
  @target_relative_path
end