class LitmusPaper::Metric::ConstantMetric
Public Class Methods
new(weight)
click to toggle source
# File lib/litmus_paper/metric/constant_metric.rb, line 4 def initialize(weight) @weight = weight end
Public Instance Methods
current_health()
click to toggle source
# File lib/litmus_paper/metric/constant_metric.rb, line 8 def current_health @weight end
stats()
click to toggle source
# File lib/litmus_paper/metric/constant_metric.rb, line 12 def stats {} end
to_s()
click to toggle source
# File lib/litmus_paper/metric/constant_metric.rb, line 16 def to_s "Metric::ConstantMetric(#{@weight})" end