Module: Holidays::FEDERAL_RESERVE

Defined in:
lib/generated_definitions/federal_reserve.rb

Overview

This file is generated by the Ruby Holidays gem.

Definitions loaded: definitions/federal_reserve.yaml

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

require 'holidays'
require 'generated_definitions/federal_reserve'

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

Class Method Summary collapse

Class Method Details

.custom_methodsObject



34
35
36
37
38
# File 'lib/generated_definitions/federal_reserve.rb', line 34

def self.custom_methods
  {
    
  }
end

.defined_regionsObject

:nodoc:



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

def self.defined_regions
  [:federal_reserve]
end

.holidays_by_monthObject



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

def self.holidays_by_month
  {
          1 => [{:mday => 1, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "New Year's Day", :regions => [:federal_reserve]},
        {:wday => 1, :week => 3, :name => "Birthday of Martin Luther King, Jr", :regions => [:federal_reserve]}],
  2 => [{:wday => 1, :week => 3, :name => "Washington's Birthday", :regions => [:federal_reserve]}],
  5 => [{:wday => 1, :week => -1, :name => "Memorial Day", :regions => [:federal_reserve]}],
  7 => [{:mday => 4, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Independence Day", :regions => [:federal_reserve]}],
  9 => [{:wday => 1, :week => 1, :name => "Labor Day", :regions => [:federal_reserve]}],
  10 => [{:wday => 1, :week => 2, :name => "Columbus Day", :regions => [:federal_reserve]}],
  11 => [{:mday => 11, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Veterans Day", :regions => [:federal_reserve]},
        {:wday => 4, :week => 4, :name => "Thanksgiving Day", :regions => [:federal_reserve]}],
  12 => [{:mday => 25, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Christmas Day", :regions => [:federal_reserve]}]
  }
end