Class: MetricFu::FlogReporter::Operator
- Inherits:
-
Object
- Object
- MetricFu::FlogReporter::Operator
- Defined in:
- lib/metric_fu/flog_reporter/operator.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.
5 6 7 8 |
# File 'lib/metric_fu/flog_reporter/operator.rb', line 5 def initialize(score, operator) @score = score.to_f @operator = operator end |
Instance Attribute Details
#operator ⇒ Object
Returns the value of attribute operator.
3 4 5 |
# File 'lib/metric_fu/flog_reporter/operator.rb', line 3 def operator @operator end |
#score ⇒ Object
Returns the value of attribute score.
3 4 5 |
# File 'lib/metric_fu/flog_reporter/operator.rb', line 3 def score @score end |