Class: PrettyTime::Minutes
- Inherits:
-
UnitOfTime
- Object
- UnitOfTime
- PrettyTime::Minutes
- Defined in:
- lib/pretty_time/pretty_time.rb
Overview
Subclass of UnitofTime converts minutes 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
68 69 70 |
# File 'lib/pretty_time/pretty_time.rb', line 68 def to_seconds @value.minutes end |