Sha256: a4346ebf507bcabc16ddeba98066d05aeed306bc3e88fac60eff78d8fbe90bfe

Contents?: true

Size: 353 Bytes

Versions: 4

Compression:

Stored size: 353 Bytes

Contents

module SplitIoClient
  class ContainsAnyMatcher < SetMatcher
    def self.matcher_type
      'CONTAINS_ANY'.freeze
    end

    def initialize(attribute, remote_array)
      super(attribute, remote_array)
    end

    def match?(_matching_key, _bucketing_key, _evaluator, data)
      local_set(data, @attribute).intersect? @remote_set
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
splitclient-rb-4.3.0.canary.1 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-4.2.2 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-4.2.1 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-4.2.0 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb