Sha256: da3301c5c784df9e83da566efdf9ca81a68dfd956e8d90383ca276f04772955d

Contents?: true

Size: 498 Bytes

Versions: 238

Compression:

Stored size: 498 Bytes

Contents

# frozen_string_literal: true

module SplitIoClient
  class EqualToSetMatcher < SetMatcher
    MATCHER_TYPE = 'EQUAL_TO_SET'

    attr_reader :attribute

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

    def match?(args)
      set = local_set(args[:attributes], @attribute)
      matches = set == @remote_set
      @logger.log_if_debug("[EqualsToSetMatcher] #{set} equals to #{@remote_set} -> #{matches}")
      matches
    end
  end
end

Version data entries

238 entries across 238 versions & 1 rubygems

Version Path
splitclient-rb-8.0.0.pre.rc1-java lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb
splitclient-rb-8.0.0.pre.rc1 lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb
splitclient-rb-7.3.5.pre.rc5-java lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb
splitclient-rb-7.3.5.pre.rc5 lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb
splitclient-rb-7.3.5.pre.rc4-java lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb
splitclient-rb-7.3.5.pre.rc4 lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb
splitclient-rb-7.3.5.pre.rc3-java lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb
splitclient-rb-7.3.5.pre.rc3 lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb
splitclient-rb-7.3.5.pre.rc2-java lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb
splitclient-rb-7.3.5.pre.rc2 lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb
splitclient-rb-7.3.5.pre.rc1-java lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb
splitclient-rb-7.3.5.pre.rc1 lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb
splitclient-rb-7.3.4-java lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb
splitclient-rb-7.3.4 lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb
splitclient-rb-7.3.4.pre.rc2-java lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb
splitclient-rb-7.3.4.pre.rc2 lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb
splitclient-rb-7.3.4.pre.rc1-java lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb
splitclient-rb-7.3.4.pre.rc1 lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb
splitclient-rb-7.3.3-java lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb
splitclient-rb-7.3.3 lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb