Class: Daru::Offsets::Hour
- Inherits:
-
Tick
- Object
- DateOffset
- Tick
- Daru::Offsets::Hour
- Defined in:
- lib/daru/date_time/offsets.rb
Overview
Create an hours offset
Instance Method Summary collapse
Methods inherited from Tick
#+, #-, #initialize
Methods inherited from DateOffset
#+, #-, #initialize
Constructor Details
This class inherits a constructor from Daru::Offsets::Tick
Instance Method Details
#freq_string ⇒ Object
143 144 145 |
# File 'lib/daru/date_time/offsets.rb', line 143 def freq_string (@n == 1 ? '' : @n.to_s) + 'H' end |
#multiplier ⇒ Object
139 140 141 |
# File 'lib/daru/date_time/offsets.rb', line 139 def multiplier 0.041666666666666664 end |