Sha256: 6329346a01ad920143f9ccb7cf387cb9aea2351ee92c9bc2d0efec485d0c73c7

Contents?: true

Size: 303 Bytes

Versions: 4

Compression:

Stored size: 303 Bytes

Contents

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

      def current_health
        @weight
      end

      def stats
        {}
      end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
litmus_paper-1.6.2 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-1.6.1 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-1.6.0 lib/litmus_paper/metric/constant_metric.rb
litmus_paper-1.5.0 lib/litmus_paper/metric/constant_metric.rb