Class: ISO8601::Minutes

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

Overview

The Minutes 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 Minute factor


275
276
277
# File 'lib/iso8601/atoms.rb', line 275

def factor
  60
end

#symbolSymbol

The atom symbol.

Returns:

  • (Symbol)

283
284
285
# File 'lib/iso8601/atoms.rb', line 283

def symbol
  :M
end