Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (11 sloc) 364 Bytes

Simple gem to parse UK bank holidays from https://www.gov.uk/bank-holidays/.

Usage

Loop through all bank holidays:

BankHolidays.all.each do |h|
  puts h[:date] # => 2012-12-25
  puts h[:name] # => Christmas day
end

Find the next bank holiday:

BankHolidays.next

Dependencies

Requires the httparty and icalendar gems.

Something went wrong with that request. Please try again.