Class: Rafflesia::SimulationGromacsStageCommandRun
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationGromacsStageCommandRun
- 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
-
#args ⇒ Object
Returns the value of attribute args.
-
#elapsed_ms ⇒ Object
Returns the value of attribute elapsed_ms.
-
#error ⇒ Object
Returns the value of attribute error.
-
#executable ⇒ Object
Returns the value of attribute executable.
-
#exit_code ⇒ Object
Returns the value of attribute exit_code.
-
#is_success ⇒ Object
Returns the value of attribute is_success.
-
#timed_out ⇒ Object
Returns the value of attribute timed_out.
-
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
-
#working_dir ⇒ Object
Returns the value of attribute working_dir.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationGromacsStageCommandRun
constructor
A new instance of SimulationGromacsStageCommandRun.
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
#args ⇒ Object
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_ms ⇒ Object
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 |
#error ⇒ Object
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 |
#executable ⇒ Object
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_code ⇒ Object
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_success ⇒ Object
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_out ⇒ Object
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_ms ⇒ Object
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_dir ⇒ Object
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 |