Class: ActiveWarehouse::Builder::TimeGenerator
- Inherits:
-
DateGenerator
- Object
- AbstractGenerator
- DateGenerator
- ActiveWarehouse::Builder::TimeGenerator
- Defined in:
- lib/active_warehouse/builder/random_data_builder.rb
Overview
Basic Time generator
Options:
-
:start_date
: The start date as a Date or Time object (default 1 year ago) -
:end_date
: The end date as a Date or Time object (default now)
Instance Method Summary collapse
-
#generate(column, options = {}) ⇒ Object
Generate a random Time value.
Instance Method Details
#generate(column, options = {}) ⇒ Object
Generate a random Time value
142 143 144 |
# File 'lib/active_warehouse/builder/random_data_builder.rb', line 142 def generate(column, ={}) super(column, ).to_time end |