Class: Rafflesia::SimulationGromacsStageCommandRun

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

Constant Summary collapse

HASH_ATTRS =
{
  args: :args,
  elapsed_ms: :elapsed_ms,
  error: :error,
  executable: :executable,
  exit_code: :exit_code,
  is_success: :is_success,
  timed_out: :timed_out,
  timeout_ms: :timeout_ms,
  working_dir: :working_dir
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SimulationGromacsStageCommandRun

Returns a new instance of SimulationGromacsStageCommandRun.



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

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @args = (hash[:args] || [])
  @elapsed_ms = hash[:elapsed_ms]
  @error = hash[:error]
  @executable = hash[:executable]
  @exit_code = hash[:exit_code]
  @is_success = hash[:is_success]
  @timed_out = hash[:timed_out]
  @timeout_ms = hash[:timeout_ms]
  @working_dir = hash[:working_dir]
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



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

def args
  @args
end

#elapsed_msObject

Returns the value of attribute elapsed_ms.



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

def elapsed_ms
  @elapsed_ms
end

#errorObject

Returns the value of attribute error.



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

def error
  @error
end

#executableObject

Returns the value of attribute executable.



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

def executable
  @executable
end

#exit_codeObject

Returns the value of attribute exit_code.



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

def exit_code
  @exit_code
end

#is_successObject

Returns the value of attribute is_success.



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

def is_success
  @is_success
end

#timed_outObject

Returns the value of attribute timed_out.



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

def timed_out
  @timed_out
end

#timeout_msObject

Returns the value of attribute timeout_ms.



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

def timeout_ms
  @timeout_ms
end

#working_dirObject

Returns the value of attribute working_dir.



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

def working_dir
  @working_dir
end