Sha256: 249b8f90ed0bf00211c7b9bef5299f38bb53bd6486592cf810f42865383810cc
Contents?: true
Size: 486 Bytes
Versions: 28
Compression:
Stored size: 486 Bytes
Contents
# frozen_string_literal: true module SplitIoClient class EqualToSetMatcher < SetMatcher MATCHER_TYPE = 'EQUAL_TO_SET' attr_reader :attribute def initialize(attribute, remote_array) super(attribute, remote_array) end def match?(args) set = local_set(args[:attributes], @attribute) matches = set == @remote_set SplitLogger.log_if_debug("[EqualsToSetMatcher] #{set} equals to #{@remote_set} -> #{matches}") matches end end end
Version data entries
28 entries across 28 versions & 1 rubygems