Class: Numeric

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

Instance Method Summary collapse

Instance Method Details

#daysObject Also known as: day


204
# File 'lib/clockwork.rb', line 204

def days; self * 86400; end

#hoursObject Also known as: hour


201
# File 'lib/clockwork.rb', line 201

def hours; self * 3600; end

#minutesObject Also known as: minute


198
# File 'lib/clockwork.rb', line 198

def minutes; self * 60; end

#secondsObject Also known as: second


195
# File 'lib/clockwork.rb', line 195

def seconds; self; end

#weeksObject Also known as: week


207
# File 'lib/clockwork.rb', line 207

def weeks; self * 604800; end