Class: MudratProjector::DateDiff::DayCalculator

Inherits:
Calculator
  • Object
show all
Defined in:
lib/mudrat_projector/date_diff.rb

Direct Known Subclasses

WeekCalculator

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



41
42
43
# File 'lib/mudrat_projector/date_diff.rb', line 41

def self.advance intervals, from: from
  from + intervals.round
end

Instance Method Details

#calculateObject



37
38
39
# File 'lib/mudrat_projector/date_diff.rb', line 37

def calculate
  days_between
end