Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/vault-tools/time.rb
Instance Method Summary collapse
- #days ⇒ Object (also: #day)
- #weeks ⇒ Object (also: #week)
Instance Method Details
#days ⇒ Object Also known as: day
25 26 27 |
# File 'lib/vault-tools/time.rb', line 25 def days self * 24 * 60 * 60 end |
#weeks ⇒ Object Also known as: week
20 21 22 |
# File 'lib/vault-tools/time.rb', line 20 def weeks self.days * 7 end |