Class: MudratProjector::DateDiff::Calculator

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

Direct Known Subclasses

ComplexCalculator, DayCalculator

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fromObject

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



25
26
27
# File 'lib/mudrat_projector/date_diff.rb', line 25

def from
  @from
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



25
26
27
# File 'lib/mudrat_projector/date_diff.rb', line 25

def to
  @to
end

Instance Method Details

#calculateObject



26
27
28
# File 'lib/mudrat_projector/date_diff.rb', line 26

def calculate
  fail
end