Sha256: ba00ac99683d04cac1ea24b400c8676e4fd4151b15b7206ea1d9118a1c87c9b2

Contents?: true

Size: 265 Bytes

Versions: 26

Compression:

Stored size: 265 Bytes

Contents

module LitmusPaper
  module Metric
    class ConstantMetric
      def initialize(weight)
        @weight = weight
      end

      def current_health
        @weight
      end

      def to_s
        "Metric::ConstantMetric(#{@weight})"
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
litmus_paper-1.4.2 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-1.4.1 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-1.3.0 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-1.2.0 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-1.1.1 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-1.1.0 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-1.0.0 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-0.9.9 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-0.9.7 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-0.9.6 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-0.9.5 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-0.9.4 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-0.9.3 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-0.9.2 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-0.9.1 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-0.9.0 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-0.8.9 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-0.8.8 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-0.8.7 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-0.8.6 lib/litmus_paper/metric/constant_metric.rb