Module: Holidays::UPS
- Defined in:
- lib/generated_definitions/ups.rb
Overview
This file is generated by the Ruby Holidays gem.
Definitions loaded: definitions/ups.yaml
All the definitions are available at github.com/holidays/holidays
Class Method Summary collapse
Class Method Details
.custom_methods ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'lib/generated_definitions/ups.rb', line 26 def self.custom_methods { "day_after_thanksgiving(year)" => Proc.new { |year| Holidays::Factory::DateCalculator.day_of_month_calculator.call(year, 11, 4, 4) + 1 }, } end |
.defined_regions ⇒ Object
:nodoc:
9 10 11 |
# File 'lib/generated_definitions/ups.rb', line 9 def self.defined_regions [:ups] end |
.holidays_by_month ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/generated_definitions/ups.rb', line 13 def self.holidays_by_month { 1 => [{:mday => 1, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "New Year's Day", :regions => [:ups]}], 5 => [{:wday => 1, :week => -1, :name => "Memorial Day", :regions => [:ups]}], 7 => [{:mday => 4, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Independence Day", :regions => [:ups]}], 9 => [{:wday => 1, :week => 1, :name => "Labor Day", :regions => [:ups]}], 11 => [{:wday => 4, :week => 4, :name => "Thanksgiving", :regions => [:ups]}, {:function => "day_after_thanksgiving(year)", :function_arguments => [:year], :name => "Day After Thanksgiving", :regions => [:ups]}], 12 => [{:mday => 25, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Christmas Day", :regions => [:ups]}, {:mday => 31, :name => "New Year's Eve", :regions => [:ups]}] } end |