class YDIM::AutoInvoice
Attributes
invoice_interval[RW]
reminder_body[RW]
reminder_subject[RW]
Public Instance Methods
advance(date)
click to toggle source
# File lib/ydim/invoice.rb, line 154 def advance(date) months = @invoice_interval.to_s[/\d+/].to_i if @reminder_subject @reminder_subject.gsub!(@@year_ptrn) do |match| years = months / 12 match.gsub(%r{\d+}) do |year| (year.to_i + years).to_s end end end @date = date >> months end
invoice_key()
click to toggle source
# File lib/ydim/invoice.rb, line 151 def invoice_key :autoinvoice end