Sha256: f655b91023b4dfdca361a1867a5a9d893a341ddf5a1693d4e6b00d9e3ec9e3ea

Contents?: true

Size: 263 Bytes

Versions: 4

Compression:

Stored size: 263 Bytes

Contents

module Flipper
  module Types
    class Percentage < Type
      attr_reader :value

      def initialize(value)
        @value = value.to_i
      end

      def enabled_value
        value
      end

      def disabled_value
        0
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
flipper-0.2.1 lib/flipper/types/percentage.rb
flipper-0.2.0 lib/flipper/types/percentage.rb
flipper-0.1.1 lib/flipper/types/percentage.rb
flipper-0.1.0 lib/flipper/types/percentage.rb