class Ector::Multi::Operation::UpdateAll

Public Class Methods

new(name, dataset, attributes_block) click to toggle source
Calls superclass method Ector::Multi::Operation::Base::new
# File lib/ector-multi/operations.rb, line 66
def initialize(name, dataset, attributes_block)
  @dataset = dataset
  super(name, attributes_block)
end

Private Instance Methods

perform(attributes) click to toggle source
# File lib/ector-multi/operations.rb, line 73
def perform(attributes)
  @dataset.update_all(attributes)
end