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

Methods inherited from Calculator

#to_big_decimal

Class Method Details

.advance(intervals, from: from) ⇒ Object



49
50
51
# File 'lib/mudrat_projector/date_diff.rb', line 49

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

Instance Method Details

#calculateObject



45
46
47
# File 'lib/mudrat_projector/date_diff.rb', line 45

def calculate
  days_between
end