module Periods::Modules::QuarterlyPeriod::InstanceMethods

Public Instance Methods

next() click to toggle source

25.06.2015 => 25.07.2015

# File lib/periods/modules/quarterly_period.rb, line 22
def next
  self.class.for(start_date.next_month(3))
end
previous() click to toggle source

25.06.2015 => 25.05.2015

# File lib/periods/modules/quarterly_period.rb, line 29
def previous
  self.class.for(start_date.prev_month(3))
end

Private Instance Methods

init_with_date(date) click to toggle source
# File lib/periods/modules/quarterly_period.rb, line 34
def init_with_date(date)
  init_with_dates(date, date.next_month(3).prev_day)
end