Class: Hour::SecondUnit
Instance Method Summary collapse
Methods inherited from Unit
Constructor Details
This class inherits a constructor from Hour::Unit
Instance Method Details
#total ⇒ Object
53 54 55 |
# File 'lib/hour.rb', line 53 def total @hour.h * 60 * 60 + @hour.m * 60 + self.value end |
#value ⇒ Object
49 50 51 |
# File 'lib/hour.rb', line 49 def value @hour.s end |