Class: MetricFu::Flog::Operator

Inherits:
Object
  • Object
show all
Defined in:
lib/metric_fu/flog.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(score, operator) ⇒ Operator

Returns a new instance of Operator.



113
114
115
116
# File 'lib/metric_fu/flog.rb', line 113

def initialize(score, operator)
  @score = score.to_f
  @operator = operator
end

Instance Attribute Details

#operatorObject

Returns the value of attribute operator.



111
112
113
# File 'lib/metric_fu/flog.rb', line 111

def operator
  @operator
end

#scoreObject

Returns the value of attribute score.



111
112
113
# File 'lib/metric_fu/flog.rb', line 111

def score
  @score
end