Sha256: b15a9d8af8f935437ccd80d8371f055fd1665bdd7dbb3a6ac6f5e83cdef1b4f3

Contents?: true

Size: 372 Bytes

Versions: 62

Compression:

Stored size: 372 Bytes

Contents

module SplitIoClient
  class ContainsAnyMatcher < SetMatcher
    MATCHER_TYPE = 'CONTAINS_ANY'.freeze

    attr_reader :attribute

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

    def match?(args)
      local_set(args[:attributes], @attribute).intersect? @remote_set
    end

    def string_type?
      false
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
splitclient-rb-5.0.2.pre.rc1-java lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.0.2.pre.rc1 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.0.1-java lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.0.1 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.0.1.pre.rc1-java lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.0.1.pre.rc1 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.0.0-java lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.0.0 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.0.0.pre.rc1-java lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-5.0.0.pre.rc1 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-4.5.2-java lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-4.5.2 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-4.5.2.pre.rc1-java lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-4.5.2.pre.rc1 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-4.5.1-java lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-4.5.1.pre.dev2 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-4.5.1.pre.dev lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-4.5.1 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-4.4.0 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb
splitclient-rb-4.3.2 lib/splitclient-rb/engine/matchers/contains_any_matcher.rb