class ISO8601::Seconds
The Seconds
atom in a {ISO8601::Duration}
The second is the base unit of measurement of time in the International System of Units (SI) as defined by the International Committee of Weights and Measures.
Constants
- AVERAGE_FACTOR
Public Class Methods
new(atom)
click to toggle source
@param [Numeric] atom The atom value
# File lib/iso8601/seconds.rb, line 17 def initialize(atom) valid_atom?(atom) @atom = atom end
Public Instance Methods
factor()
click to toggle source
The Second factor
@return [Numeric]
# File lib/iso8601/seconds.rb, line 27 def factor AVERAGE_FACTOR end
symbol()
click to toggle source
The atom symbol.
@return [Symbol]
# File lib/iso8601/seconds.rb, line 43 def symbol :S end
to_seconds()
click to toggle source
The amount of seconds
@return [Numeric]
# File lib/iso8601/seconds.rb, line 35 def to_seconds atom end