Class: TimeSpanner::TimeUnits::Hour

Inherits:
TimeUnit show all
Defined in:
lib/time_spanner/time_units/hour.rb

Constant Summary collapse

MULTIPLIER =
Rational 1, 3600

Instance Attribute Summary

Attributes inherited from TimeUnit

#multiplier

Attributes inherited from Unit

#amount, #duration, #position, #rest

Instance Method Summary collapse

Methods inherited from TimeUnit

#calculate

Methods inherited from Unit

#<=>, #plural_name, #reverse!

Constructor Details

#initializeHour

Returns a new instance of Hour.



8
9
10
# File 'lib/time_spanner/time_units/hour.rb', line 8

def initialize
  super 8, MULTIPLIER
end