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



265
266
267
# File 'lib/iso8601/atoms.rb', line 265

def factor
  1
end

#symbolSymbol

The atom symbol.

Returns:

  • (Symbol)


272
273
274
# File 'lib/iso8601/atoms.rb', line 272

def symbol
  :S
end