Class: Randgen
- Inherits:
-
Object
- Object
- Randgen
- Defined in:
- lib/attributor/extensions/randexp.rb
Constant Summary collapse
- DATE_TIME_EPOCH =
::DateTime.new(2015, 1, 1, 0, 0, 0)
Class Method Summary collapse
Class Method Details
.date ⇒ Object
7 8 9 |
# File 'lib/attributor/extensions/randexp.rb', line 7 def self.date return DATE_TIME_EPOCH - rand(800) end |
.time ⇒ Object
11 12 13 |
# File 'lib/attributor/extensions/randexp.rb', line 11 def self.time return date.to_time end |