Class: RRule::Hourly

Inherits:
Frequency show all
Defined in:
lib/rrule/frequencies/hourly.rb

Instance Attribute Summary

Attributes inherited from Frequency

#current_date, #filters, #generator

Instance Method Summary collapse

Methods inherited from Frequency

#advance, for_options, #initialize, #next_occurrences

Constructor Details

This class inherits a constructor from RRule::Frequency

Instance Method Details

#possible_daysObject



5
6
7
# File 'lib/rrule/frequencies/hourly.rb', line 5

def possible_days
  [current_date.yday - 1] # convert to 0-indexed
end

#timesetObject



9
10
11
# File 'lib/rrule/frequencies/hourly.rb', line 9

def timeset
  super.map { |time| time.merge(hour: current_date.hour) }
end