class SplitIoClient::EqualToBooleanMatcher

def get_value(args)

def get_value(args)
  args[:attributes].fetch(@attribute) do |a|
    args[:attributes][a.to_s] || args[:attributes][a.to_sym]
  end
end

def initialize(attribute, boolean, logger)

def initialize(attribute, boolean, logger)
  @attribute = attribute
  @boolean = boolean
  @logger = logger
end

def match?(args)

def match?(args)
  value = get_value(args)
  value = false if value.to_s.casecmp('false').zero?
  value = true if value.to_s.casecmp('true').zero?
  matches = value == @boolean
  @logger.log_if_debug("[EqualToBooleanMatcher] #{value} equals to #{@boolean} -> #{matches}")
  matches
end

def string_type?

def string_type?
  false
end