Class: MudratProjector::DateDiff::WeekCalculator
- Inherits:
-
DayCalculator
- Object
- Struct
- Calculator
- DayCalculator
- MudratProjector::DateDiff::WeekCalculator
- Defined in:
- lib/mudrat_projector/date_diff.rb
Instance Attribute Summary
Attributes inherited from Calculator
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Calculator
Class Method Details
.advance(intervals, from: from) ⇒ Object
59 60 61 |
# File 'lib/mudrat_projector/date_diff.rb', line 59 def self.advance intervals, from: from from + (intervals * 7) end |
Instance Method Details
#calculate ⇒ Object
55 56 57 |
# File 'lib/mudrat_projector/date_diff.rb', line 55 def calculate super / 7.0 end |