Module: Totals::Formatter

Included in:
DecimalFormatter, DigitalFormatter
Defined in:
lib/totals.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#secondsObject (readonly)

Returns the value of attribute seconds


3
4
5
# File 'lib/totals.rb', line 3

def seconds
  @seconds
end

Instance Method Details

#initialize(seconds) ⇒ Object


5
6
7
# File 'lib/totals.rb', line 5

def initialize(seconds)
  @seconds = seconds.to_i
end