class AWS::Core::Policy::ConditionBlock
def add(operator, key, *values)
-
values
(Mixed
) -- The value to compare against. -
key
(Symbol or String
) -- The key to compare. Symbol -
operator
(Symbol or String
) -- The operator used to
def add(operator, key, *values) if operator.kind_of?(Symbol) converted_values = values.map { |v| convert_value(v) } else converted_values = values end operator = translate_operator(operator, values.first) op = (@conditions[operator] ||= {}) raise "duplicate #{operator} conditions for #{key}" if op[key] op[translate_key(key)] = converted_values end