Class: Rafflesia::SimulationGromacsPreflightRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationGromacsPreflightRequest
- Defined in:
- lib/rafflesia/simulations/simulation_gromacs_preflight_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ engine: :engine, max_bytes: :max_bytes, root_object_ids: :root_object_ids, script_object_id: :script_object_id, timeout_ms: :timeout_ms }.freeze
Instance Attribute Summary collapse
-
#engine ⇒ Object
Returns the value of attribute engine.
-
#max_bytes ⇒ Object
Returns the value of attribute max_bytes.
-
#root_object_ids ⇒ Object
Returns the value of attribute root_object_ids.
-
#script_object_id ⇒ Object
Returns the value of attribute script_object_id.
-
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationGromacsPreflightRequest
constructor
A new instance of SimulationGromacsPreflightRequest.
Constructor Details
#initialize(json) ⇒ SimulationGromacsPreflightRequest
Returns a new instance of SimulationGromacsPreflightRequest.
23 24 25 26 27 28 29 30 31 |
# File 'lib/rafflesia/simulations/simulation_gromacs_preflight_request.rb', line 23 def initialize(json) super() hash = self.class.normalize(json) @engine = hash[:engine] @max_bytes = hash[:max_bytes] @root_object_ids = (hash[:root_object_ids] || []) @script_object_id = hash[:script_object_id] @timeout_ms = hash[:timeout_ms] end |
Instance Attribute Details
#engine ⇒ Object
Returns the value of attribute engine.
16 17 18 |
# File 'lib/rafflesia/simulations/simulation_gromacs_preflight_request.rb', line 16 def engine @engine end |
#max_bytes ⇒ Object
Returns the value of attribute max_bytes.
16 17 18 |
# File 'lib/rafflesia/simulations/simulation_gromacs_preflight_request.rb', line 16 def max_bytes @max_bytes end |
#root_object_ids ⇒ Object
Returns the value of attribute root_object_ids.
16 17 18 |
# File 'lib/rafflesia/simulations/simulation_gromacs_preflight_request.rb', line 16 def root_object_ids @root_object_ids end |
#script_object_id ⇒ Object
Returns the value of attribute script_object_id.
16 17 18 |
# File 'lib/rafflesia/simulations/simulation_gromacs_preflight_request.rb', line 16 def script_object_id @script_object_id end |
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
16 17 18 |
# File 'lib/rafflesia/simulations/simulation_gromacs_preflight_request.rb', line 16 def timeout_ms @timeout_ms end |