Class: Minutes
Direct Known Subclasses
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(number = 1) ⇒ Minutes
constructor
A new instance of Minutes.
Methods inherited from Duration
#%, #*, #+, #-, #/, #<=>, #blank?, #format, #iso8601, #present?
Constructor Details
#initialize(number = 1) ⇒ Minutes
Returns a new instance of Minutes.
2 3 4 |
# File 'lib/duration/time_units/minute.rb', line 2 def initialize number = 1 super(:minutes => number) end |