Module: Periods::Modules::HalfyearlyPeriod::InstanceMethods
- Defined in:
- lib/periods/modules/halfyearly_period.rb
Instance Method Summary collapse
Instance Method Details
#days ⇒ Object
26 27 28 |
# File 'lib/periods/modules/halfyearly_period.rb', line 26 def days (self.next.start_date - start_date).to_i end |
#next ⇒ Object
18 19 20 |
# File 'lib/periods/modules/halfyearly_period.rb', line 18 def next self.class.for(start_date.next_month(6)) end |
#previous ⇒ Object
22 23 24 |
# File 'lib/periods/modules/halfyearly_period.rb', line 22 def previous self.class.for(start_date.prev_month(6)) end |