Class: RiCal::PropertyValue::RecurrenceRule::OccurrenceIncrementer::DailyIncrementer
- Inherits:
-
FrequencyIncrementer
- Object
- RiCal::PropertyValue::RecurrenceRule::OccurrenceIncrementer
- FrequencyIncrementer
- RiCal::PropertyValue::RecurrenceRule::OccurrenceIncrementer::DailyIncrementer
- Defined in:
- lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/daily_incrementer.rb
Overview
:nodoc:
Instance Attribute Summary
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
Methods inherited from FrequencyIncrementer
conditional_incrementer, #first_within_outer_cycle, #initialize, #multiplier, #next_cycle, #step, #sub_cycle_incrementer
Methods inherited from RiCal::PropertyValue::RecurrenceRule::OccurrenceIncrementer
#add_outer_incrementer, #contains_daily_incrementer?, #contains_weeknum_incrementer?, #first_sub_occurrence, from_rrule, #in_outer_cycle?, #initialize, #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
This class inherits a constructor from RiCal::PropertyValue::RecurrenceRule::OccurrenceIncrementer::FrequencyIncrementer
Class Method Details
.for_rrule(rrule) ⇒ Object
7 8 9 |
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/daily_incrementer.rb', line 7 def self.for_rrule(rrule) conditional_incrementer(rrule, "DAILY", OccurrenceIncrementer::ByHourIncrementer) end |
Instance Method Details
#advance_what ⇒ Object
15 16 17 |
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/daily_incrementer.rb', line 15 def advance_what :days end |
#daily_incrementer? ⇒ Boolean
11 12 13 |
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/daily_incrementer.rb', line 11 def daily_incrementer? true end |
#end_of_occurrence(date_time) ⇒ Object
19 20 21 |
# File 'lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/daily_incrementer.rb', line 19 def end_of_occurrence(date_time) date_time.end_of_day end |