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