Class: IceCube::MonthlyRule
- Inherits:
-
ValidatedRule
- Object
- Rule
- ValidatedRule
- IceCube::MonthlyRule
- Includes:
- Validations::Day, Validations::DayOfMonth, Validations::DayOfWeek, Validations::HourOfDay, Validations::MinuteOfHour, Validations::MonthOfYear, Validations::MonthlyInterval, Validations::SecondOfMinute
- Defined in:
- lib/ice_cube/rules/monthly_rule.rb
Constant Summary
Constants inherited from ValidatedRule
ValidatedRule::VALIDATION_ORDER
Constants inherited from Rule
Instance Attribute Summary
Attributes inherited from ValidatedRule
Attributes inherited from Rule
Instance Method Summary collapse
-
#initialize(interval = 1) ⇒ MonthlyRule
constructor
A new instance of MonthlyRule.
Methods included from Validations::MonthlyInterval
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 inherited from ValidatedRule
#base_interval_validation, #clobber_base_validations, #full_required?, #next_time, #other_interval_validations, #realign, #replace_validations_for, #reset, #to_hash, #to_ical, #to_s, #validations_for
Methods included from Validations::Until
Methods included from Deprecated
#deprecated, #deprecated_alias, schedule_options
Methods included from Validations::Count
Methods included from Validations::ScheduleLock
Methods inherited from Rule
#==, daily, from_hash, from_ical, from_yaml, #hash, hourly, minutely, monthly, #next_time, #on?, #reset, secondly, #terminating?, #to_hash, #to_ical, #to_yaml, weekly, yearly
Constructor Details
#initialize(interval = 1) ⇒ MonthlyRule
Returns a new instance of MonthlyRule.
14 15 16 17 18 19 |
# File 'lib/ice_cube/rules/monthly_rule.rb', line 14 def initialize(interval = 1) super interval(interval) schedule_lock(:day, :hour, :min, :sec) reset end |