Sha256: f3f5dc507b15b9f501b742d9498ed6fff1bdffdbeab9266e022ba8a492d448c4

Contents?: true

Size: 447 Bytes

Versions: 6

Compression:

Stored size: 447 Bytes

Contents

module ScheduleAttributes::RuleParser
  class Year < Base

    private

    # @return [IceCube::Rule]
    #
    def parse_options
      @rule = rule_factory.yearly(input.interval).tap do |rule|
        if input.start_date
          rule.month_of_year(input.start_date.month)
              .day_of_month(input.start_date.day)
        end
      end
    end

    def set_yearly_months; nil end

    def set_yearly_month_exceptions; nil end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
dgp-schedule_attributes-0.5.3 lib/schedule_attributes/rule_parser/year.rb
dgp-schedule_attributes-0.5.2 lib/schedule_attributes/rule_parser/year.rb
dgp-schedule_attributes-0.5.1 lib/schedule_attributes/rule_parser/year.rb
dgp-schedule_attributes-0.5.0 lib/schedule_attributes/rule_parser/year.rb
dgp-schedule_attributes-0.4.0 lib/schedule_attributes/rule_parser/year.rb
schedule_attributes-0.3.0 lib/schedule_attributes/rule_parser/year.rb