Class: SmartSeeds::Generator::Time

Inherits:
Base
  • Object
show all
Defined in:
lib/smart_seeds/generator/time.rb

Instance Method Summary collapse

Constructor Details

#initialize(column, model) ⇒ Time

Returns a new instance of Time.



5
6
7
# File 'lib/smart_seeds/generator/time.rb', line 5

def initialize(column, model)
  super
end

Instance Method Details

#generate_valueObject



9
10
11
# File 'lib/smart_seeds/generator/time.rb', line 9

def generate_value
  DateTime.now.to_time
end