Class: PgVerify::Model::Hazard
- Inherits:
-
Object
- Object
- PgVerify::Model::Hazard
- Defined in:
- lib/pg-verify/model/dcca/hazard.rb
Instance Attribute Summary collapse
-
#expression ⇒ Object
Returns the value of attribute expression.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text, expression) ⇒ Hazard
constructor
A new instance of Hazard.
Constructor Details
#initialize(text, expression) ⇒ Hazard
Returns a new instance of Hazard.
9 10 11 |
# File 'lib/pg-verify/model/dcca/hazard.rb', line 9 def initialize(text, expression) @text, @expression = text, expression end |
Instance Attribute Details
#expression ⇒ Object
Returns the value of attribute expression.
7 8 9 |
# File 'lib/pg-verify/model/dcca/hazard.rb', line 7 def expression @expression end |
#text ⇒ Object
Returns the value of attribute text.
6 7 8 |
# File 'lib/pg-verify/model/dcca/hazard.rb', line 6 def text @text end |