Class: MudratProjector::DateDiff::WeekCalculator

Inherits:
DayCalculator show all
Defined in:
lib/mudrat_projector/date_diff.rb

Instance Attribute Summary

Attributes inherited from Calculator

#from, #to

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Calculator

#to_big_decimal

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

#calculateObject



55
56
57
# File 'lib/mudrat_projector/date_diff.rb', line 55

def calculate
  super / 7.0
end