Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/clockwork.rb
Instance Method Summary collapse
- #days ⇒ Object (also: #day)
- #hours ⇒ Object (also: #hour)
- #minutes ⇒ Object (also: #minute)
- #seconds ⇒ Object (also: #second)
- #weeks ⇒ Object (also: #week)
Instance Method Details
#days ⇒ Object Also known as: day
228 |
# File 'lib/clockwork.rb', line 228 def days; self * 86400; end |
#hours ⇒ Object Also known as: hour
225 |
# File 'lib/clockwork.rb', line 225 def hours; self * 3600; end |
#minutes ⇒ Object Also known as: minute
222 |
# File 'lib/clockwork.rb', line 222 def minutes; self * 60; end |
#seconds ⇒ Object Also known as: second
219 |
# File 'lib/clockwork.rb', line 219 def seconds; self; end |
#weeks ⇒ Object Also known as: week
231 |
# File 'lib/clockwork.rb', line 231 def weeks; self * 604800; end |