Class: ActiveWarehouse::Builder::BooleanGenerator

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

Overview

A basic Boolean generator

Instance Method Summary collapse

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, options={})
  rand(1) == 1
end