Class: Rafflesia::SimulationGromacsMdpParameter
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationGromacsMdpParameter
- Defined in:
- lib/rafflesia/simulations/simulation_gromacs_mdp_parameter.rb
Constant Summary collapse
- HASH_ATTRS =
{ is_duplicate: :is_duplicate, line_number: :line_number, name: :name, value: :value }.freeze
Instance Attribute Summary collapse
-
#is_duplicate ⇒ Object
Returns the value of attribute is_duplicate.
-
#line_number ⇒ Object
Returns the value of attribute line_number.
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationGromacsMdpParameter
constructor
A new instance of SimulationGromacsMdpParameter.
Constructor Details
#initialize(json) ⇒ SimulationGromacsMdpParameter
Returns a new instance of SimulationGromacsMdpParameter.
21 22 23 24 25 26 27 28 |
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_parameter.rb', line 21 def initialize(json) super() hash = self.class.normalize(json) @is_duplicate = hash[:is_duplicate] @line_number = hash[:line_number] @name = hash[:name] @value = hash[:value] end |
Instance Attribute Details
#is_duplicate ⇒ Object
Returns the value of attribute is_duplicate.
15 16 17 |
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_parameter.rb', line 15 def is_duplicate @is_duplicate end |
#line_number ⇒ Object
Returns the value of attribute line_number.
15 16 17 |
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_parameter.rb', line 15 def line_number @line_number end |
#name ⇒ Object
Returns the value of attribute name.
15 16 17 |
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_parameter.rb', line 15 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
15 16 17 |
# File 'lib/rafflesia/simulations/simulation_gromacs_mdp_parameter.rb', line 15 def value @value end |