Sha256: 3658c78b2f6e59e533ab97d45292690986f8ce8ad28e28438466fba48e221583
Contents?: true
Size: 434 Bytes
Versions: 2
Compression:
Stored size: 434 Bytes
Contents
module SplitIoClient class EqualToBooleanMatcher def self.matcher_type 'EQUAL_TO_BOOLEAN'.freeze end def initialize(attribute, boolean) @attribute = attribute @boolean = boolean end def match?(value, _matching_key, _bucketing_key, _evaluator) value = false if value.to_s.downcase == 'false' value = true if value.to_s.downcase == 'true' value == @boolean end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
splitclient-rb-4.3.0.canary.2 | lib/splitclient-rb/engine/matchers/equal_to_boolean_matcher.rb |
splitclient-rb-4.3.0.canary.1 | lib/splitclient-rb/engine/matchers/equal_to_boolean_matcher.rb |