Class: IceCube::HourlyRule

Inherits:
ValidatedRule show all
Includes:
Validations::HourlyInterval
Defined in:
lib/ice_cube/rules/hourly_rule.rb

Constant Summary

Constants inherited from ValidatedRule

ValidatedRule::VALIDATION_ORDER

Instance Attribute Summary

Attributes inherited from Rule

#uses

Instance Method Summary collapse

Methods included from Validations::HourlyInterval

#interval

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

#until, #until_time

Methods included from Deprecated

#deprecated, #deprecated_alias

Methods included from Validations::Count

#count, #occurrence_count

Methods included from Validations::DayOfYear

#day_of_year

Methods included from Validations::MonthOfYear

#month_of_year

Methods included from Validations::Day

#day

Methods included from Validations::DayOfWeek

#day_of_week

Methods included from Validations::DayOfMonth

#day_of_month

Methods included from Validations::SecondOfMinute

#second_of_minute

Methods included from Validations::MinuteOfHour

#minute_of_hour

Methods included from Validations::HourOfDay

#hour_of_day

Methods included from Validations::ScheduleLock

#schedule_lock

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) ⇒ HourlyRule

Returns a new instance of HourlyRule.



7
8
9
10
11
12
# File 'lib/ice_cube/rules/hourly_rule.rb', line 7

def initialize(interval = 1, week_start = :sunday)
  super
  interval(interval)
  schedule_lock(:min, :sec)
  reset
end