Class: Rafflesia::SimulationGromacsCheckInputsData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationGromacsCheckInputsData
- Defined in:
- lib/rafflesia/simulations/simulation_gromacs_check_inputs_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ dynamic_input_count: :dynamic_input_count, dynamic_inputs: :dynamic_inputs, expected_outputs: :expected_outputs, inventory_entry_count: :inventory_entry_count, missing_input_count: :missing_input_count, missing_inputs: :missing_inputs, required_input_count: :required_input_count, resolutions: :resolutions, resolved_input_count: :resolved_input_count, root_objects: :root_objects, schema_version: :schema_version, script: :script }.freeze
Instance Attribute Summary collapse
-
#dynamic_input_count ⇒ Object
Returns the value of attribute dynamic_input_count.
-
#dynamic_inputs ⇒ Object
Returns the value of attribute dynamic_inputs.
-
#expected_outputs ⇒ Object
Returns the value of attribute expected_outputs.
-
#inventory_entry_count ⇒ Object
Returns the value of attribute inventory_entry_count.
-
#missing_input_count ⇒ Object
Returns the value of attribute missing_input_count.
-
#missing_inputs ⇒ Object
Returns the value of attribute missing_inputs.
-
#required_input_count ⇒ Object
Returns the value of attribute required_input_count.
-
#resolutions ⇒ Object
Returns the value of attribute resolutions.
-
#resolved_input_count ⇒ Object
Returns the value of attribute resolved_input_count.
-
#root_objects ⇒ Object
Returns the value of attribute root_objects.
-
#schema_version ⇒ Object
Returns the value of attribute schema_version.
-
#script ⇒ Object
Returns the value of attribute script.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationGromacsCheckInputsData
constructor
A new instance of SimulationGromacsCheckInputsData.
Constructor Details
#initialize(json) ⇒ SimulationGromacsCheckInputsData
Returns a new instance of SimulationGromacsCheckInputsData.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/rafflesia/simulations/simulation_gromacs_check_inputs_data.rb', line 37 def initialize(json) super() hash = self.class.normalize(json) @dynamic_input_count = hash[:dynamic_input_count] @dynamic_inputs = (hash[:dynamic_inputs] || []).map { |item| item ? Rafflesia::SimulationGromacsFileRef.new(item) : nil } @expected_outputs = (hash[:expected_outputs] || []).map { |item| item ? Rafflesia::SimulationGromacsFileRef.new(item) : nil } @inventory_entry_count = hash[:inventory_entry_count] @missing_input_count = hash[:missing_input_count] @missing_inputs = (hash[:missing_inputs] || []).map { |item| item ? Rafflesia::SimulationGromacsFileRef.new(item) : nil } @required_input_count = hash[:required_input_count] @resolutions = (hash[:resolutions] || []).map { |item| item ? Rafflesia::SimulationGromacsInputResolution.new(item) : nil } @resolved_input_count = hash[:resolved_input_count] @root_objects = (hash[:root_objects] || []).map { |item| item ? Rafflesia::SimulationGromacsTextObject.new(item) : nil } @schema_version = hash[:schema_version] @script = hash[:script] ? Rafflesia::SimulationGromacsTextObject.new(hash[:script]) : nil end |
Instance Attribute Details
#dynamic_input_count ⇒ Object
Returns the value of attribute dynamic_input_count.
23 24 25 |
# File 'lib/rafflesia/simulations/simulation_gromacs_check_inputs_data.rb', line 23 def dynamic_input_count @dynamic_input_count end |
#dynamic_inputs ⇒ Object
Returns the value of attribute dynamic_inputs.
23 24 25 |
# File 'lib/rafflesia/simulations/simulation_gromacs_check_inputs_data.rb', line 23 def dynamic_inputs @dynamic_inputs end |
#expected_outputs ⇒ Object
Returns the value of attribute expected_outputs.
23 24 25 |
# File 'lib/rafflesia/simulations/simulation_gromacs_check_inputs_data.rb', line 23 def expected_outputs @expected_outputs end |
#inventory_entry_count ⇒ Object
Returns the value of attribute inventory_entry_count.
23 24 25 |
# File 'lib/rafflesia/simulations/simulation_gromacs_check_inputs_data.rb', line 23 def inventory_entry_count @inventory_entry_count end |
#missing_input_count ⇒ Object
Returns the value of attribute missing_input_count.
23 24 25 |
# File 'lib/rafflesia/simulations/simulation_gromacs_check_inputs_data.rb', line 23 def missing_input_count @missing_input_count end |
#missing_inputs ⇒ Object
Returns the value of attribute missing_inputs.
23 24 25 |
# File 'lib/rafflesia/simulations/simulation_gromacs_check_inputs_data.rb', line 23 def missing_inputs @missing_inputs end |
#required_input_count ⇒ Object
Returns the value of attribute required_input_count.
23 24 25 |
# File 'lib/rafflesia/simulations/simulation_gromacs_check_inputs_data.rb', line 23 def required_input_count @required_input_count end |
#resolutions ⇒ Object
Returns the value of attribute resolutions.
23 24 25 |
# File 'lib/rafflesia/simulations/simulation_gromacs_check_inputs_data.rb', line 23 def resolutions @resolutions end |
#resolved_input_count ⇒ Object
Returns the value of attribute resolved_input_count.
23 24 25 |
# File 'lib/rafflesia/simulations/simulation_gromacs_check_inputs_data.rb', line 23 def resolved_input_count @resolved_input_count end |
#root_objects ⇒ Object
Returns the value of attribute root_objects.
23 24 25 |
# File 'lib/rafflesia/simulations/simulation_gromacs_check_inputs_data.rb', line 23 def root_objects @root_objects end |
#schema_version ⇒ Object
Returns the value of attribute schema_version.
23 24 25 |
# File 'lib/rafflesia/simulations/simulation_gromacs_check_inputs_data.rb', line 23 def schema_version @schema_version end |
#script ⇒ Object
Returns the value of attribute script.
23 24 25 |
# File 'lib/rafflesia/simulations/simulation_gromacs_check_inputs_data.rb', line 23 def script @script end |