Class: IceCube::MonthlyRule

Constant Summary

Constants inherited from ValidatedRule

ValidatedRule::VALIDATION_ORDER

Constants inherited from Rule

Rule::INTERVAL_TYPES

Instance Attribute Summary

Attributes inherited from ValidatedRule

#validations

Attributes inherited from Rule

#uses

Instance Method Summary collapse

Methods included from Validations::MonthlyInterval

#interval

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

#realign, #second_of_minute

Methods included from Validations::MinuteOfHour

#minute_of_hour, #realign

Methods included from Validations::HourOfDay

#hour_of_day, #realign

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

#until, #until_time

Methods included from Deprecated

#deprecated, #deprecated_alias, schedule_options

Methods included from Validations::Count

#count, #occurrence_count

Methods included from Validations::ScheduleLock

#schedule_lock

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.



16
17
18
19
20
21
# File 'lib/ice_cube/rules/monthly_rule.rb', line 16

def initialize(interval = 1)
  super
  interval(interval)
  schedule_lock(:day, :hour, :min, :sec)
  reset
end