Class: RiCal::PropertyValue::RecurrenceRule::OccurrenceIncrementer::WeeklyIncrementer
- Inherits:
-
FrequencyIncrementer
- Object
- RiCal::PropertyValue::RecurrenceRule::OccurrenceIncrementer
- FrequencyIncrementer
- RiCal::PropertyValue::RecurrenceRule::OccurrenceIncrementer::WeeklyIncrementer
- Defined in:
- lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/weekly_incrementer.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#wkst ⇒ Object
readonly
:nodoc:.
Attributes inherited from FrequencyIncrementer
#interval, #outer_occurrence, #skip_increment
Attributes inherited from RiCal::PropertyValue::RecurrenceRule::OccurrenceIncrementer
#contains_daily_incrementer, #contains_weeknum_incrementer, #current_occurrence, #leaf_iterator, #outer_incrementers, #outer_range, #sub_cycle_incrementer
Class Method Summary collapse
Instance Method Summary collapse
- #advance_what ⇒ Object
- #end_of_occurrence(date_time) ⇒ Object
-
#initialize(rrule, parent) ⇒ WeeklyIncrementer
constructor
include WeeklyBydayMethods.
- #multiplier ⇒ Object
Methods inherited from FrequencyIncrementer
conditional_incrementer, #first_within_outer_cycle, #next_cycle, #step, #sub_cycle_incrementer
Methods inherited from RiCal::PropertyValue::RecurrenceRule::OccurrenceIncrementer
#add_outer_incrementer, #contains_daily_incrementer?, #contains_weeknum_incrementer?, #daily_incrementer?, #first_sub_occurrence, from_rrule, #in_outer_cycle?, #next_cycle, #next_time, #outermost?, #short_name, #to_s, #update_cycle_range, #weeknum_incrementer?
Methods included from TimeManipulation
#advance_day, #advance_month, #advance_week, #advance_year, #first_day_of_month, #first_day_of_week, #first_day_of_year, #first_hour_of_day
Constructor Details
#initialize(rrule, parent) ⇒ WeeklyIncrementer
include WeeklyBydayMethods
13 14 15 16 |
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/weekly_incrementer.rb', line 13 def initialize(rrule, parent) @wkst = rrule.wkst_day super(rrule, parent) end |
Instance Attribute Details
#wkst ⇒ Object (readonly)
:nodoc:
9 10 11 |
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/weekly_incrementer.rb', line 9 def wkst @wkst end |
Class Method Details
.for_rrule(rrule) ⇒ Object
18 19 20 |
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/weekly_incrementer.rb', line 18 def self.for_rrule(rrule) conditional_incrementer(rrule, "WEEKLY", ByDayIncrementer) end |
Instance Method Details
#advance_what ⇒ Object
26 27 28 |
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/weekly_incrementer.rb', line 26 def advance_what :days end |
#end_of_occurrence(date_time) ⇒ Object
30 31 32 |
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/weekly_incrementer.rb', line 30 def end_of_occurrence(date_time) date_time.end_of_week_with_wkst(wkst) end |
#multiplier ⇒ Object
22 23 24 |
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/weekly_incrementer.rb', line 22 def multiplier 7 end |