Sha256: b55330fc322a4681ce75948403cb08da9c9c31f21d1ceb58b1702a08fe919768
Contents?: true
Size: 433 Bytes
Versions: 6
Compression:
Stored size: 433 Bytes
Contents
module ScheduleAttributes::RuleParser # Parse an options hash to a weekly rule # Weekdays used only if one or more are given, otherwise assume a weekly # schedule starting the day of the :start_date # class Week < Base private # @return [IceCube::Rule] # def parse_options @rule = IceCube::Rule.weekly(input.interval) @rule.day(*input.weekdays) unless input.weekdays.empty? end end end
Version data entries
6 entries across 6 versions & 2 rubygems