Class: Date

Inherits:
Object
  • Object
show all
Defined in:
lib/interests/core_ext/date.rb

Instance Method Summary collapse

Instance Method Details

#total_interests_from(amount, from_date) ⇒ Object



7
8
9
# File 'lib/interests/core_ext/date.rb', line 7

def total_interests_from(amount, from_date)
  Interests::Calculator.total_interests(amount, from_date, self)
end

#total_interests_till(amount, to_date) ⇒ Object



3
4
5
# File 'lib/interests/core_ext/date.rb', line 3

def total_interests_till(amount, to_date)
  Interests::Calculator.total_interests(amount, self, to_date)
end