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

To use the definitions in this file, load it right after you load the Holiday gem:

require 'holidays'
require 'generated_definitions/fedex'

All the definitions are available at github.com/holidays/holidays

Class Method Summary collapse

Class Method Details

.custom_methodsObject


32
33
34
35
36
37
38
39
40
# File 'lib/generated_definitions/fedex.rb', line 32

def self.custom_methods
  {
    "day_after_thanksgiving(year)" => Proc.new { |year|
Holidays::DateCalculatorFactory.day_of_month_calculator.call(year, 11, 4, 4) + 1
},


  }
end

.defined_regionsObject


15
16
17
# File 'lib/generated_definitions/fedex.rb', line 15

def self.defined_regions
  [:fedex]
end

.holidays_by_monthObject


19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/generated_definitions/fedex.rb', line 19

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