Module: Periods::Modules::QuarterlyPeriod::InstanceMethods
- Defined in:
- lib/periods/modules/quarterly_period.rb
Instance Method Summary collapse
-
#next ⇒ Object
25.06.2015 => 25.07.2015.
-
#previous ⇒ Object
25.06.2015 => 25.05.2015.
Instance Method Details
#next ⇒ Object
25.06.2015 => 25.07.2015
30 31 32 |
# File 'lib/periods/modules/quarterly_period.rb', line 30 def next self.class.for(start_date.next_month(3)) end |
#previous ⇒ Object
25.06.2015 => 25.05.2015
37 38 39 |
# File 'lib/periods/modules/quarterly_period.rb', line 37 def previous self.class.for(start_date.prev_month(3)) end |