Sha256: e9cda51fffad82f047d01e2bf053aa465adebb0d481b02746d6cfb50808c352a
Contents?: true
Size: 627 Bytes
Versions: 28
Compression:
Stored size: 627 Bytes
Contents
# frozen_string_literal: true module SplitIoClient class ContainsAllMatcher < SetMatcher MATCHER_TYPE = 'CONTAINS_ALL' attr_reader :attribute def initialize(attribute, remote_array) super(attribute, remote_array) end def match?(args) if @remote_set.empty? SplitLogger.log_if_debug('[ContainsAllMatcher] Remote Set Empty') return false end matches = @remote_set.subset? local_set(args[:attributes], @attribute) SplitLogger.log_if_debug("[ContainsAllMatcher] Remote Set #{@remote_set} contains #{@attribute} -> #{matches}") matches end end end
Version data entries
28 entries across 28 versions & 1 rubygems