Class: FlogBuilder::Operator
- Inherits:
-
Object
- Object
- FlogBuilder::Operator
- Defined in:
- lib/flog_builder.rb
Instance Attribute Summary collapse
-
#operator ⇒ Object
Returns the value of attribute operator.
-
#score ⇒ Object
Returns the value of attribute score.
Instance Method Summary collapse
-
#initialize(score, operator) ⇒ Operator
constructor
A new instance of Operator.
Constructor Details
#initialize(score, operator) ⇒ Operator
Returns a new instance of Operator.
46 47 48 49 |
# File 'lib/flog_builder.rb', line 46 def initialize(score, operator) @score = score.to_f @operator = operator end |
Instance Attribute Details
#operator ⇒ Object
Returns the value of attribute operator.
44 45 46 |
# File 'lib/flog_builder.rb', line 44 def operator @operator end |
#score ⇒ Object
Returns the value of attribute score.
44 45 46 |
# File 'lib/flog_builder.rb', line 44 def score @score end |