Module: Periods::Modules::QuarterlyPeriod::InstanceMethods

Defined in:
lib/periods/modules/quarterly_period.rb

Instance Method Summary collapse

Instance Method Details

#nextObject

25.06.2015 => 25.07.2015



22
23
24
# File 'lib/periods/modules/quarterly_period.rb', line 22

def next
  self.class.for(start_date.next_month(3))
end

#previousObject

25.06.2015 => 25.05.2015



29
30
31
# File 'lib/periods/modules/quarterly_period.rb', line 29

def previous
  self.class.for(start_date.prev_month(3))
end