class Flounder::Query::Update
An update obtained by calling any of the chain methods on an entity.
Public Class Methods
new(domain, entity)
click to toggle source
Calls superclass method
Flounder::Query::Base::new
# File lib/flounder/query/update.rb, line 9 def initialize domain, entity super(domain, Arel::UpdateManager, entity) manager.table entity.table end
Public Instance Methods
set(fields)
click to toggle source
Add one row to the updates.
# File lib/flounder/query/update.rb, line 17 def set fields manager.set( fields.map { |k, v| transform_tuple_for_set(k, v) }) end