lib/flipper/feature_check_context.rb in flipper-0.27.1 vs lib/flipper/feature_check_context.rb in flipper-0.28.0

- old
+ new

@@ -5,16 +5,20 @@ # Public: The GateValues instance that keeps track of the values for the # gates for the feature. attr_reader :values - # Public: The thing we want to know if a feature is enabled for. - attr_reader :thing + # Public: The actors we want to know if a feature is enabled for. + attr_reader :actors - def initialize(feature_name:, values:, thing:) + def initialize(feature_name:, values:, actors:) @feature_name = feature_name @values = values - @thing = thing + @actors = actors + end + + def actors? + !@actors.nil? && !@actors.empty? end # Public: Convenience method for groups value like Feature has. def groups_value values.groups