Class: Seconds

Inherits:
Duration show all
Defined in:
lib/duration/time_units/second.rb

Direct Known Subclasses

Second

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

Methods inherited from Duration

#%, #*, #+, #-, #/, #<=>, #blank?, #format, #iso8601, #present?

Constructor Details

#initialize(number = 1) ⇒ Seconds

Returns a new instance of Seconds.



2
3
4
# File 'lib/duration/time_units/second.rb', line 2

def initialize number = 1
	super(:seconds => number)
end