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