Class: ISO8601::Weeks

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

Overview

A Weeks atom in a Duration

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 Week factor


217
218
219
# File 'lib/iso8601/atoms.rb', line 217

def factor
  604800
end

#symbolSymbol

The atom symbol.


225
226
227
# File 'lib/iso8601/atoms.rb', line 225

def symbol
  :W
end