Class: Rafflesia::SimulationGromacsFileRef
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationGromacsFileRef
- Defined in:
- lib/rafflesia/simulations/simulation_gromacs_file_ref.rb
Constant Summary collapse
- HASH_ATTRS =
{ command_index: :command_index, format: :format, is_dynamic: :is_dynamic, line_number: :line_number, normalized_path: :normalized_path, path: :path, role: :role, source_flag: :source_flag }.freeze
Instance Attribute Summary collapse
-
#command_index ⇒ Object
Returns the value of attribute command_index.
-
#format ⇒ Object
Returns the value of attribute format.
-
#is_dynamic ⇒ Object
Returns the value of attribute is_dynamic.
-
#line_number ⇒ Object
Returns the value of attribute line_number.
-
#normalized_path ⇒ Object
Returns the value of attribute normalized_path.
-
#path ⇒ Object
Returns the value of attribute path.
-
#role ⇒ Object
Returns the value of attribute role.
-
#source_flag ⇒ Object
Returns the value of attribute source_flag.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationGromacsFileRef
constructor
A new instance of SimulationGromacsFileRef.
Constructor Details
#initialize(json) ⇒ SimulationGromacsFileRef
Returns a new instance of SimulationGromacsFileRef.
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rafflesia/simulations/simulation_gromacs_file_ref.rb', line 29 def initialize(json) super() hash = self.class.normalize(json) @command_index = hash[:command_index] @format = hash[:format] @is_dynamic = hash[:is_dynamic] @line_number = hash[:line_number] @normalized_path = hash[:normalized_path] @path = hash[:path] @role = hash[:role] @source_flag = hash[:source_flag] end |
Instance Attribute Details
#command_index ⇒ Object
Returns the value of attribute command_index.
19 20 21 |
# File 'lib/rafflesia/simulations/simulation_gromacs_file_ref.rb', line 19 def command_index @command_index end |
#format ⇒ Object
Returns the value of attribute format.
19 20 21 |
# File 'lib/rafflesia/simulations/simulation_gromacs_file_ref.rb', line 19 def format @format end |
#is_dynamic ⇒ Object
Returns the value of attribute is_dynamic.
19 20 21 |
# File 'lib/rafflesia/simulations/simulation_gromacs_file_ref.rb', line 19 def is_dynamic @is_dynamic end |
#line_number ⇒ Object
Returns the value of attribute line_number.
19 20 21 |
# File 'lib/rafflesia/simulations/simulation_gromacs_file_ref.rb', line 19 def line_number @line_number end |
#normalized_path ⇒ Object
Returns the value of attribute normalized_path.
19 20 21 |
# File 'lib/rafflesia/simulations/simulation_gromacs_file_ref.rb', line 19 def normalized_path @normalized_path end |
#path ⇒ Object
Returns the value of attribute path.
19 20 21 |
# File 'lib/rafflesia/simulations/simulation_gromacs_file_ref.rb', line 19 def path @path end |
#role ⇒ Object
Returns the value of attribute role.
19 20 21 |
# File 'lib/rafflesia/simulations/simulation_gromacs_file_ref.rb', line 19 def role @role end |
#source_flag ⇒ Object
Returns the value of attribute source_flag.
19 20 21 |
# File 'lib/rafflesia/simulations/simulation_gromacs_file_ref.rb', line 19 def source_flag @source_flag end |