Class: BatchAgg::Builder
- Inherits:
-
Object
- Object
- BatchAgg::Builder
- Defined in:
- lib/batchagg.rb
Instance Method Summary collapse
- #build_class ⇒ Object
-
#initialize(model) ⇒ Builder
constructor
A new instance of Builder.
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_class ⇒ Object
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 |