Class: ISO8601::Weeks
Overview
A Weeks atom in a Duration
Instance Attribute Summary
Attributes inherited from Atom
Instance Method Summary collapse
-
#factor ⇒ Object
The Week factor.
-
#symbol ⇒ Symbol
The atom symbol.
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
#factor ⇒ Object
The Week factor
193 194 195 |
# File 'lib/iso8601/atoms.rb', line 193 def factor 604800 end |
#symbol ⇒ Symbol
The atom symbol.
200 201 202 |
# File 'lib/iso8601/atoms.rb', line 200 def symbol :W end |