Class: Rafflesia::SimulationGromacsInspectScriptData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationGromacsInspectScriptData
- Defined in:
- lib/rafflesia/simulations/simulation_gromacs_inspect_script_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ command_count: :command_count, commands: :commands, expected_outputs: :expected_outputs, has_dynamic_refs: :has_dynamic_refs, required_inputs: :required_inputs, runtime_requirements: :runtime_requirements, schema_version: :schema_version, script: :script, unsupported_syntax: :unsupported_syntax }.freeze
Instance Attribute Summary collapse
-
#command_count ⇒ Object
Returns the value of attribute command_count.
-
#commands ⇒ Object
Returns the value of attribute commands.
-
#expected_outputs ⇒ Object
Returns the value of attribute expected_outputs.
-
#has_dynamic_refs ⇒ Object
Returns the value of attribute has_dynamic_refs.
-
#required_inputs ⇒ Object
Returns the value of attribute required_inputs.
-
#runtime_requirements ⇒ Object
Returns the value of attribute runtime_requirements.
-
#schema_version ⇒ Object
Returns the value of attribute schema_version.
-
#script ⇒ Object
Returns the value of attribute script.
-
#unsupported_syntax ⇒ Object
Returns the value of attribute unsupported_syntax.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationGromacsInspectScriptData
constructor
A new instance of SimulationGromacsInspectScriptData.
Constructor Details
#initialize(json) ⇒ SimulationGromacsInspectScriptData
Returns a new instance of SimulationGromacsInspectScriptData.
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/rafflesia/simulations/simulation_gromacs_inspect_script_data.rb', line 31 def initialize(json) super() hash = self.class.normalize(json) @command_count = hash[:command_count] @commands = (hash[:commands] || []).map { |item| item ? Rafflesia::SimulationGromacsScriptCommand.new(item) : nil } @expected_outputs = (hash[:expected_outputs] || []).map { |item| item ? Rafflesia::SimulationGromacsFileRef.new(item) : nil } @has_dynamic_refs = hash[:has_dynamic_refs] @required_inputs = (hash[:required_inputs] || []).map { |item| item ? Rafflesia::SimulationGromacsFileRef.new(item) : nil } @runtime_requirements = (hash[:runtime_requirements] || []) @schema_version = hash[:schema_version] @script = hash[:script] ? Rafflesia::SimulationGromacsTextObject.new(hash[:script]) : nil @unsupported_syntax = (hash[:unsupported_syntax] || []).map { |item| item ? Rafflesia::SimulationGromacsScriptSyntaxWarning.new(item) : nil } end |
Instance Attribute Details
#command_count ⇒ Object
Returns the value of attribute command_count.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_gromacs_inspect_script_data.rb', line 20 def command_count @command_count end |
#commands ⇒ Object
Returns the value of attribute commands.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_gromacs_inspect_script_data.rb', line 20 def commands @commands end |
#expected_outputs ⇒ Object
Returns the value of attribute expected_outputs.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_gromacs_inspect_script_data.rb', line 20 def expected_outputs @expected_outputs end |
#has_dynamic_refs ⇒ Object
Returns the value of attribute has_dynamic_refs.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_gromacs_inspect_script_data.rb', line 20 def has_dynamic_refs @has_dynamic_refs end |
#required_inputs ⇒ Object
Returns the value of attribute required_inputs.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_gromacs_inspect_script_data.rb', line 20 def required_inputs @required_inputs end |
#runtime_requirements ⇒ Object
Returns the value of attribute runtime_requirements.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_gromacs_inspect_script_data.rb', line 20 def runtime_requirements @runtime_requirements end |
#schema_version ⇒ Object
Returns the value of attribute schema_version.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_gromacs_inspect_script_data.rb', line 20 def schema_version @schema_version end |
#script ⇒ Object
Returns the value of attribute script.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_gromacs_inspect_script_data.rb', line 20 def script @script end |
#unsupported_syntax ⇒ Object
Returns the value of attribute unsupported_syntax.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_gromacs_inspect_script_data.rb', line 20 def unsupported_syntax @unsupported_syntax end |