module Periods::Modules::WeeklyPeriod::InstanceMethods
Public Instance Methods
days()
click to toggle source
# File lib/periods/modules/weekly_period.rb, line 32 def days 7 end
next()
click to toggle source
25.06.2015 => 02.07.2015
# File lib/periods/modules/weekly_period.rb, line 21 def next self.class.for(start_date + 7) end
previous()
click to toggle source
02.07.2015 => 25.06.2015
# File lib/periods/modules/weekly_period.rb, line 28 def previous self.class.for(start_date - 7) end
Private Instance Methods
init_with_date(date)
click to toggle source
# File lib/periods/modules/weekly_period.rb, line 37 def init_with_date(date) init_with_dates(date, date + 6) end