Sha256: 3df5f9a21cbea84febe68116a3bd13781e9bfe838a47e4c2fa722a8d59d7b376

Contents?: true

Size: 501 Bytes

Versions: 1

Compression:

Stored size: 501 Bytes

Contents

module RiCal
  class PropertyValue
    class RecurrenceRule < PropertyValue
      class OccurrenceIncrementer # :nodoc:
        class HourlyIncrementer < FrequencyIncrementer #:nodoc:
          def self.for_rrule(rrule)
            conditional_incrementer(rrule, "HOURLY", ByMinuteIncrementer)
          end

          def advance_what
            :hours
          end

          def end_of_occurrence(date_time)
            date_time.end_of_hour
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
friflaj_ri_cal-0.9.0 lib/ri_cal/property_value/recurrence_rule/occurrence_incrementer/hourly_incrementer.rb