Class: ActiveWarehouse::Builder::TimeGenerator

Inherits:
DateGenerator show all
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

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, options={})
  super(column, options).to_time
end