Class: PrettyTime::Hours
- Inherits:
-
UnitOfTime
- Object
- UnitOfTime
- PrettyTime::Hours
- Defined in:
- lib/pretty_time/pretty_time.rb
Overview
Subclass of UnitofTime converts hours into seconds
Instance Attribute Summary
Attributes inherited from UnitOfTime
Instance Method Summary collapse
Methods inherited from UnitOfTime
Constructor Details
This class inherits a constructor from PrettyTime::UnitOfTime
Instance Method Details
#to_seconds ⇒ Object
60 61 62 |
# File 'lib/pretty_time/pretty_time.rb', line 60 def to_seconds @value.hours end |