Sha256: b7737ea1455cdf18d0bad5ffe774a55a166211ea8e06197731db736e4a752344

Contents?: true

Size: 290 Bytes

Versions: 3

Compression:

Stored size: 290 Bytes

Contents

module Flipper
  module Types
    class Actor < Type
      attr_reader :identifier

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

      def enabled_value
        @identifier
      end

      alias_method :disabled_value, :enabled_value
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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