Class: ActiveWarehouse::Builder::BooleanGenerator
- Inherits:
-
Object
- Object
- ActiveWarehouse::Builder::BooleanGenerator
- Defined in:
- lib/active_warehouse/builder/random_data_builder.rb
Overview
A basic Boolean generator
Instance Method Summary collapse
-
#generate(column, options = {}) ⇒ Object
Generate a random boolean.
Instance Method Details
#generate(column, options = {}) ⇒ Object
Generate a random boolean
219 220 221 |
# File 'lib/active_warehouse/builder/random_data_builder.rb', line 219 def generate(column, ={}) rand(1) == 1 end |