Class: SplitIoClient::ContainsAnyMatcher
- Inherits:
-
SetMatcher
- Object
- SetMatcher
- SplitIoClient::ContainsAnyMatcher
- Defined in:
- lib/engine/matchers/contains_any_matcher.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attribute, remote_array) ⇒ ContainsAnyMatcher
constructor
A new instance of ContainsAnyMatcher.
- #match?(_key, data) ⇒ Boolean
Constructor Details
#initialize(attribute, remote_array) ⇒ ContainsAnyMatcher
Returns a new instance of ContainsAnyMatcher.
7 8 9 |
# File 'lib/engine/matchers/contains_any_matcher.rb', line 7 def initialize(attribute, remote_array) super(attribute, remote_array) end |
Class Method Details
.matcher_type ⇒ Object
3 4 5 |
# File 'lib/engine/matchers/contains_any_matcher.rb', line 3 def self.matcher_type 'CONTAINS_ANY'.freeze end |
Instance Method Details
#match?(_key, data) ⇒ Boolean
11 12 13 |
# File 'lib/engine/matchers/contains_any_matcher.rb', line 11 def match?(_key, data) local_set(data, @attribute).intersect? @remote_set end |