Class: PgVerify::Model::Hazard

Inherits:
Object
  • Object
show all
Defined in:
lib/pg-verify/model/dcca/hazard.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#expressionObject

Returns the value of attribute expression.



7
8
9
# File 'lib/pg-verify/model/dcca/hazard.rb', line 7

def expression
  @expression
end

#textObject

Returns the value of attribute text.



6
7
8
# File 'lib/pg-verify/model/dcca/hazard.rb', line 6

def text
  @text
end