Class: Rafflesia::SimulationGromacsCheckInputsRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  max_bytes: :max_bytes,
  root_object_ids: :root_object_ids,
  script_object_id: :script_object_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SimulationGromacsCheckInputsRequest

Returns a new instance of SimulationGromacsCheckInputsRequest.



19
20
21
22
23
24
25
# File 'lib/rafflesia/simulations/simulation_gromacs_check_inputs_request.rb', line 19

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @max_bytes = hash[:max_bytes]
  @root_object_ids = (hash[:root_object_ids] || [])
  @script_object_id = hash[:script_object_id]
end

Instance Attribute Details

#max_bytesObject

Returns the value of attribute max_bytes.



14
15
16
# File 'lib/rafflesia/simulations/simulation_gromacs_check_inputs_request.rb', line 14

def max_bytes
  @max_bytes
end

#root_object_idsObject

Returns the value of attribute root_object_ids.



14
15
16
# File 'lib/rafflesia/simulations/simulation_gromacs_check_inputs_request.rb', line 14

def root_object_ids
  @root_object_ids
end

#script_object_idObject

Returns the value of attribute script_object_id.



14
15
16
# File 'lib/rafflesia/simulations/simulation_gromacs_check_inputs_request.rb', line 14

def script_object_id
  @script_object_id
end