Class: Rafflesia::SimulationGromacsScriptCommand
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationGromacsScriptCommand
- Defined in:
- lib/rafflesia/simulations/simulation_gromacs_script_command.rb
Constant Summary collapse
- HASH_ATTRS =
{ argument_count: :argument_count, executable: :executable, index: :index, inputs: :inputs, kind: :kind, line_number: :line_number, outputs: :outputs, raw: :raw, stage: :stage, subcommand: :subcommand }.freeze
Instance Attribute Summary collapse
-
#argument_count ⇒ Object
Returns the value of attribute argument_count.
-
#executable ⇒ Object
Returns the value of attribute executable.
-
#index ⇒ Object
Returns the value of attribute index.
-
#inputs ⇒ Object
Returns the value of attribute inputs.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#line_number ⇒ Object
Returns the value of attribute line_number.
-
#outputs ⇒ Object
Returns the value of attribute outputs.
-
#raw ⇒ Object
Returns the value of attribute raw.
-
#stage ⇒ Object
Returns the value of attribute stage.
-
#subcommand ⇒ Object
Returns the value of attribute subcommand.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationGromacsScriptCommand
constructor
A new instance of SimulationGromacsScriptCommand.
Constructor Details
#initialize(json) ⇒ SimulationGromacsScriptCommand
Returns a new instance of SimulationGromacsScriptCommand.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/rafflesia/simulations/simulation_gromacs_script_command.rb', line 33 def initialize(json) super() hash = self.class.normalize(json) @argument_count = hash[:argument_count] @executable = hash[:executable] @index = hash[:index] @inputs = (hash[:inputs] || []).map { |item| item ? Rafflesia::SimulationGromacsFileRef.new(item) : nil } @kind = hash[:kind] @line_number = hash[:line_number] @outputs = (hash[:outputs] || []).map { |item| item ? Rafflesia::SimulationGromacsFileRef.new(item) : nil } @raw = hash[:raw] @stage = hash[:stage] @subcommand = hash[:subcommand] end |
Instance Attribute Details
#argument_count ⇒ Object
Returns the value of attribute argument_count.
21 22 23 |
# File 'lib/rafflesia/simulations/simulation_gromacs_script_command.rb', line 21 def argument_count @argument_count end |
#executable ⇒ Object
Returns the value of attribute executable.
21 22 23 |
# File 'lib/rafflesia/simulations/simulation_gromacs_script_command.rb', line 21 def executable @executable end |
#index ⇒ Object
Returns the value of attribute index.
21 22 23 |
# File 'lib/rafflesia/simulations/simulation_gromacs_script_command.rb', line 21 def index @index end |
#inputs ⇒ Object
Returns the value of attribute inputs.
21 22 23 |
# File 'lib/rafflesia/simulations/simulation_gromacs_script_command.rb', line 21 def inputs @inputs end |
#kind ⇒ Object
Returns the value of attribute kind.
21 22 23 |
# File 'lib/rafflesia/simulations/simulation_gromacs_script_command.rb', line 21 def kind @kind end |
#line_number ⇒ Object
Returns the value of attribute line_number.
21 22 23 |
# File 'lib/rafflesia/simulations/simulation_gromacs_script_command.rb', line 21 def line_number @line_number end |
#outputs ⇒ Object
Returns the value of attribute outputs.
21 22 23 |
# File 'lib/rafflesia/simulations/simulation_gromacs_script_command.rb', line 21 def outputs @outputs end |
#raw ⇒ Object
Returns the value of attribute raw.
21 22 23 |
# File 'lib/rafflesia/simulations/simulation_gromacs_script_command.rb', line 21 def raw @raw end |
#stage ⇒ Object
Returns the value of attribute stage.
21 22 23 |
# File 'lib/rafflesia/simulations/simulation_gromacs_script_command.rb', line 21 def stage @stage end |
#subcommand ⇒ Object
Returns the value of attribute subcommand.
21 22 23 |
# File 'lib/rafflesia/simulations/simulation_gromacs_script_command.rb', line 21 def subcommand @subcommand end |