class Rapids::Batch::DefineBatch
Attributes
find_or_creates[R]
updates[R]
Public Class Methods
new()
click to toggle source
# File lib/rapids/batch.rb, line 12 def initialize @find_or_creates = [] @updates = [] end
Public Instance Methods
find_or_create(name,find_columns,*fill_columns_plus_other_params)
click to toggle source
# File lib/rapids/batch.rb, line 17 def find_or_create(name,find_columns,*fill_columns_plus_other_params) @find_or_creates << FindOrCreate.new(name,find_columns,fill_columns_plus_other_params.first) end
update(name)
click to toggle source
# File lib/rapids/batch.rb, line 21 def update(name) @updates << Update.new(name) end