Class: Rafflesia::SimulationGromacsPreflightRequest

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#engineObject

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_bytesObject

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_idsObject

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_idObject

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_msObject

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