Class: Fixnum

Inherits:
Object
  • Object
show all
Defined in:
lib/verku/stats.rb

Instance Method Summary collapse

Instance Method Details

#agoObject


5
6
7
# File 'lib/verku/stats.rb', line 5

def ago
  Time.now - self
end

#dayObject


2
3
4
# File 'lib/verku/stats.rb', line 2

def day
  self * (60 * 60 * 24) # seconds * hours * minutes
end