Class: Rafflesia::SimulationGromacsStageMaterializedInput

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

Constant Summary collapse

HASH_ATTRS =
{
  candidate: :candidate,
  input: :input,
  local_path: :local_path,
  message: :message,
  object: :object,
  resolution: :resolution,
  sha256: :sha_256,
  size_bytes: :size_bytes,
  status: :status
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SimulationGromacsStageMaterializedInput

Returns a new instance of SimulationGromacsStageMaterializedInput.



31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb', line 31

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

Instance Attribute Details

#candidateObject

Returns the value of attribute candidate.



20
21
22
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb', line 20

def candidate
  @candidate
end

#inputObject

Returns the value of attribute input.



20
21
22
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb', line 20

def input
  @input
end

#local_pathObject

Returns the value of attribute local_path.



20
21
22
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb', line 20

def local_path
  @local_path
end

#messageObject

Returns the value of attribute message.



20
21
22
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb', line 20

def message
  @message
end

#objectObject

Returns the value of attribute object.



20
21
22
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb', line 20

def object
  @object
end

#resolutionObject

Returns the value of attribute resolution.



20
21
22
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb', line 20

def resolution
  @resolution
end

#sha_256Object

Returns the value of attribute sha_256.



20
21
22
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb', line 20

def sha_256
  @sha_256
end

#size_bytesObject

Returns the value of attribute size_bytes.



20
21
22
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb', line 20

def size_bytes
  @size_bytes
end

#statusObject

Returns the value of attribute status.



20
21
22
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb', line 20

def status
  @status
end