Class: Hour
Constant Summary
Constants inherited from Duration
Duration::MULTIPLES, Duration::UNITS, Duration::VERSION
Instance Attribute Summary
Attributes inherited from Duration
#days, #hours, #minutes, #months, #seconds, #total, #weeks, #years
Instance Method Summary collapse
-
#initialize ⇒ Hour
constructor
A new instance of Hour.
Methods inherited from Duration
#%, #*, #+, #-, #/, #<=>, #blank?, #format, #iso8601, #present?
Constructor Details
#initialize ⇒ Hour
Returns a new instance of Hour.
8 9 10 |
# File 'lib/duration/time_units/hour.rb', line 8 def initialize super(1) end |