Class: BatchAgg::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/batchagg.rb

Instance Method Summary collapse

Constructor Details

#initialize(model) ⇒ Builder

Returns a new instance of Builder.



241
# File 'lib/batchagg.rb', line 241

def initialize(model) = @model = model

Instance Method Details

#build_classObject



243
244
245
246
247
# File 'lib/batchagg.rb', line 243

def build_class(&)
  col = Collector.new
  col.instance_eval(&)
  Runner.new(col.aggs, @model)
end