Class: ActiveWarehouse::Builder::AbstractGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/active_warehouse/builder/random_data_builder.rb

Overview

Implement this class to provide an generator implementation for a specific class.

Direct Known Subclasses

DateGenerator

Instance Method Summary collapse

Instance Method Details

#generate(column, options = {}) ⇒ Object

Generate the next value. The column parameter must be an ActiveRecord::Adapter::Column instance. The options hash is implementation dependent.



115
116
117
# File 'lib/active_warehouse/builder/random_data_builder.rb', line 115

def generate(column, options={})
  raise "generate method must be implemented by a subclass"
end