Class: IceCube::WeeklyRule
- Inherits:
-
ValidatedRule
- Object
- Rule
- ValidatedRule
- IceCube::WeeklyRule
- Includes:
- Validations::WeeklyInterval
- Defined in:
- lib/ice_cube/rules/weekly_rule.rb
Constant Summary
Constants inherited from ValidatedRule
ValidatedRule::VALIDATION_ORDER
Instance Attribute Summary
Attributes inherited from Rule
Instance Method Summary collapse
-
#initialize(interval = 1, week_start = :sunday) ⇒ WeeklyRule
constructor
A new instance of WeeklyRule.
Methods included from Validations::WeeklyInterval
Methods inherited from ValidatedRule
#clobber_base_validations, #next_time, #replace_validations_for, #to_hash, #to_ical, #to_s, #validations_for
Methods included from Validations::Until
Methods included from Deprecated
#deprecated, #deprecated_alias
Methods included from Validations::Count
Methods included from Validations::DayOfYear
Methods included from Validations::MonthOfYear
Methods included from Validations::Day
Methods included from Validations::DayOfWeek
Methods included from Validations::DayOfMonth
Methods included from Validations::SecondOfMinute
Methods included from Validations::MinuteOfHour
Methods included from Validations::HourOfDay
Methods included from Validations::ScheduleLock
Methods inherited from Rule
#==, daily, from_hash, from_yaml, #full_required?, #hash, hourly, minutely, monthly, #next_time, #on?, #reset, secondly, #terminating?, #to_hash, #to_ical, #to_yaml, weekly, yearly
Constructor Details
#initialize(interval = 1, week_start = :sunday) ⇒ WeeklyRule
Returns a new instance of WeeklyRule.
7 8 9 10 11 12 |
# File 'lib/ice_cube/rules/weekly_rule.rb', line 7 def initialize(interval = 1, week_start = :sunday) super interval(interval, week_start) schedule_lock(:wday, :hour, :min, :sec) reset end |