class AWS::DynamoDB::AttributeCollection::UpdateBuilder
def attribute_updates(action, attributes, our_opts = {})
def attribute_updates(action, attributes, our_opts = {}) new_updates = attributes.inject({}) do |new_updates, (name, value)| name = name.to_s context = "in value for attribute #{name}" value = [value].flatten if our_opts[:setify] new_updates.update(name => { :action => action, :value => format_attribute_value(value, context) }) end add_updates(new_updates) end