Class: SplitIoClient::ContainsAllMatcher
- Inherits:
-
SetMatcher
- Object
- SetMatcher
- SplitIoClient::ContainsAllMatcher
- Defined in:
- lib/splitclient-rb/engine/matchers/contains_all_matcher.rb
Constant Summary collapse
- MATCHER_TYPE =
'CONTAINS_ALL'.freeze
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
Instance Method Summary collapse
-
#initialize(attribute, remote_array) ⇒ ContainsAllMatcher
constructor
A new instance of ContainsAllMatcher.
- #match?(args) ⇒ Boolean
- #string_type? ⇒ Boolean
Constructor Details
#initialize(attribute, remote_array) ⇒ ContainsAllMatcher
Returns a new instance of ContainsAllMatcher.
7 8 9 |
# File 'lib/splitclient-rb/engine/matchers/contains_all_matcher.rb', line 7 def initialize(attribute, remote_array) super(attribute, remote_array) end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
5 6 7 |
# File 'lib/splitclient-rb/engine/matchers/contains_all_matcher.rb', line 5 def attribute @attribute end |
Instance Method Details
#match?(args) ⇒ Boolean
11 12 13 14 15 |
# File 'lib/splitclient-rb/engine/matchers/contains_all_matcher.rb', line 11 def match?(args) return false if @remote_set.empty? @remote_set.subset? local_set(args[:attributes], @attribute) end |
#string_type? ⇒ Boolean
17 18 19 |
# File 'lib/splitclient-rb/engine/matchers/contains_all_matcher.rb', line 17 def string_type? false end |