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

Class Method Details

.advance(intervals, from: from) ⇒ Object



51
52
53
# File 'lib/mudrat_projector/date_diff.rb', line 51

def self.advance intervals, from: from
  from + (intervals * 7)
end

Instance Method Details

#calculateObject



47
48
49
# File 'lib/mudrat_projector/date_diff.rb', line 47

def calculate
  super / 7.0
end