Class: Rafflesia::SimulationGromacsPlannedOutput

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

Constant Summary collapse

HASH_ATTRS =
{
  command_index: :command_index,
  format: :format,
  path: :path,
  planned_ref: :planned_ref,
  storage_hint: :storage_hint
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SimulationGromacsPlannedOutput

Returns a new instance of SimulationGromacsPlannedOutput.



23
24
25
26
27
28
29
30
31
# File 'lib/rafflesia/simulations/simulation_gromacs_planned_output.rb', line 23

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @command_index = hash[:command_index]
  @format = hash[:format]
  @path = hash[:path]
  @planned_ref = hash[:planned_ref]
  @storage_hint = hash[:storage_hint]
end

Instance Attribute Details

#command_indexObject

Returns the value of attribute command_index.



16
17
18
# File 'lib/rafflesia/simulations/simulation_gromacs_planned_output.rb', line 16

def command_index
  @command_index
end

#formatObject

Returns the value of attribute format.



16
17
18
# File 'lib/rafflesia/simulations/simulation_gromacs_planned_output.rb', line 16

def format
  @format
end

#pathObject

Returns the value of attribute path.



16
17
18
# File 'lib/rafflesia/simulations/simulation_gromacs_planned_output.rb', line 16

def path
  @path
end

#planned_refObject

Returns the value of attribute planned_ref.



16
17
18
# File 'lib/rafflesia/simulations/simulation_gromacs_planned_output.rb', line 16

def planned_ref
  @planned_ref
end

#storage_hintObject

Returns the value of attribute storage_hint.



16
17
18
# File 'lib/rafflesia/simulations/simulation_gromacs_planned_output.rb', line 16

def storage_hint
  @storage_hint
end