Module: BankHolidays

Defined in:
lib/bankholidays.rb

Class Method Summary collapse

Class Method Details

.allObject

Get a list of all bank holidays



9
10
11
# File 'lib/bankholidays.rb', line 9

def self.all    
  self.get_dates
end

.nextObject

Get the next bank holiday



14
15
16
# File 'lib/bankholidays.rb', line 14

def self.next
  self.get_dates.reject { |x| x[:date] < Date.today }.first
end