Module: Holidays::FEDEX
- Defined in:
- lib/generated_definitions/fedex.rb
Overview
This file is generated by the Ruby Holidays gem.
Definitions loaded: definitions/fedex.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/fedex.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/fedex.rb', line 9 def self.defined_regions [:fedex] end |
.holidays_by_month ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/generated_definitions/fedex.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 => [:fedex]}], 5 => [{:wday => 1, :week => -1, :name => "Memorial Day", :regions => [:fedex]}], 7 => [{:mday => 4, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Independence Day", :regions => [:fedex]}], 9 => [{:wday => 1, :week => 1, :name => "Labor Day", :regions => [:fedex]}], 11 => [{:wday => 4, :week => 4, :name => "Thanksgiving", :regions => [:fedex]}, {:function => "day_after_thanksgiving(year)", :function_arguments => [:year], :name => "Day After Thanksgiving", :regions => [:fedex]}], 12 => [{:mday => 25, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Christmas Day", :regions => [:fedex]}, {:mday => 31, :name => "New Year's Eve", :regions => [:fedex]}] } end |