Class: Rafflesia::SimulationGromacsRunStageRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationGromacsRunStageRequest
- Defined in:
- lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ gromacs_binary_path: :gromacs_binary_path, input_object_ids: :input_object_ids, max_bytes: :max_bytes, max_log_bytes: :max_log_bytes, output_dir: :output_dir, preflight_object_id: :preflight_object_id, root_object_ids: :root_object_ids, script_object_id: :script_object_id, stage_index: :stage_index, stdin: :stdin, timeout_ms: :timeout_ms }.freeze
Instance Attribute Summary collapse
-
#gromacs_binary_path ⇒ Object
Returns the value of attribute gromacs_binary_path.
-
#input_object_ids ⇒ Object
Returns the value of attribute input_object_ids.
-
#max_bytes ⇒ Object
Returns the value of attribute max_bytes.
-
#max_log_bytes ⇒ Object
Returns the value of attribute max_log_bytes.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
-
#preflight_object_id ⇒ Object
Returns the value of attribute preflight_object_id.
-
#root_object_ids ⇒ Object
Returns the value of attribute root_object_ids.
-
#script_object_id ⇒ Object
Returns the value of attribute script_object_id.
-
#stage_index ⇒ Object
Returns the value of attribute stage_index.
-
#stdin ⇒ Object
Returns the value of attribute stdin.
-
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationGromacsRunStageRequest
constructor
A new instance of SimulationGromacsRunStageRequest.
Constructor Details
#initialize(json) ⇒ SimulationGromacsRunStageRequest
Returns a new instance of SimulationGromacsRunStageRequest.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 35 def initialize(json) super() hash = self.class.normalize(json) @gromacs_binary_path = hash[:gromacs_binary_path] @input_object_ids = hash[:input_object_ids] || {} @max_bytes = hash[:max_bytes] @max_log_bytes = hash[:max_log_bytes] @output_dir = hash[:output_dir] @preflight_object_id = hash[:preflight_object_id] @root_object_ids = (hash[:root_object_ids] || []) @script_object_id = hash[:script_object_id] @stage_index = hash[:stage_index] @stdin = hash[:stdin] @timeout_ms = hash[:timeout_ms] end |
Instance Attribute Details
#gromacs_binary_path ⇒ Object
Returns the value of attribute gromacs_binary_path.
22 23 24 |
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22 def gromacs_binary_path @gromacs_binary_path end |
#input_object_ids ⇒ Object
Returns the value of attribute input_object_ids.
22 23 24 |
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22 def input_object_ids @input_object_ids end |
#max_bytes ⇒ Object
Returns the value of attribute max_bytes.
22 23 24 |
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22 def max_bytes @max_bytes end |
#max_log_bytes ⇒ Object
Returns the value of attribute max_log_bytes.
22 23 24 |
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22 def max_log_bytes @max_log_bytes end |
#output_dir ⇒ Object
Returns the value of attribute output_dir.
22 23 24 |
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22 def output_dir @output_dir end |
#preflight_object_id ⇒ Object
Returns the value of attribute preflight_object_id.
22 23 24 |
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22 def preflight_object_id @preflight_object_id end |
#root_object_ids ⇒ Object
Returns the value of attribute root_object_ids.
22 23 24 |
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22 def root_object_ids @root_object_ids end |
#script_object_id ⇒ Object
Returns the value of attribute script_object_id.
22 23 24 |
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22 def script_object_id @script_object_id end |
#stage_index ⇒ Object
Returns the value of attribute stage_index.
22 23 24 |
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22 def stage_index @stage_index end |
#stdin ⇒ Object
Returns the value of attribute stdin.
22 23 24 |
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22 def stdin @stdin end |
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
22 23 24 |
# File 'lib/rafflesia/simulations/simulation_gromacs_run_stage_request.rb', line 22 def timeout_ms @timeout_ms end |