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
68 |
# File 'lib/clockwork.rb', line 68 def days; self * 86400; end |
#hours ⇒ Object Also known as: hour
65 |
# File 'lib/clockwork.rb', line 65 def hours; self * 3600; end |
#minutes ⇒ Object Also known as: minute
62 |
# File 'lib/clockwork.rb', line 62 def minutes; self * 60; end |
#seconds ⇒ Object Also known as: second
59 |
# File 'lib/clockwork.rb', line 59 def seconds; self; end |
#weeks ⇒ Object Also known as: week
71 |
# File 'lib/clockwork.rb', line 71 def weeks; self * 604800; end |