Class: ISO8601::Seconds

Inherits:
Atom
  • Object
show all
Defined in:
lib/iso8601/atoms.rb

Overview

The Seconds atom in a 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.

Instance Attribute Summary

Attributes inherited from Atom

#atom, #base

Instance Method Summary collapse

Methods inherited from Atom

#<=>, #eql?, #hash, #initialize, #to_f, #to_i, #to_s, #to_seconds, #value

Constructor Details

This class inherits a constructor from ISO8601::Atom

Instance Method Details

#factorObject

The Second factor


297
298
299
# File 'lib/iso8601/atoms.rb', line 297

def factor
  1
end

#symbolSymbol

The atom symbol.

Returns:

  • (Symbol)

305
306
307
# File 'lib/iso8601/atoms.rb', line 305

def symbol
  :S
end