Class: SimpleInvoice::BillingPeriodType::Weekly

Inherits:
SimpleInvoice::BillingPeriodType show all
Defined in:
lib/simple_invoice/billing_period_type/weekly.rb

Instance Method Summary collapse

Methods inherited from SimpleInvoice::BillingPeriodType

annually, fortnightly, #initialize, #last_day_of_period, monthly, quarterly, weekly

Constructor Details

This class inherits a constructor from SimpleInvoice::BillingPeriodType

Instance Method Details

#first_day_of_next_period(first_day) ⇒ Object

Parameters:

  • first_day (Date)


6
7
8
# File 'lib/simple_invoice/billing_period_type/weekly.rb', line 6

def first_day_of_next_period first_day
  first_day.next_day(7 * @multiple)
end