Skip to content
Ruby gem to get UK bank holidays from www.gov.uk
Find file
Pull request Compare This branch is even with jfi:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
.gitignore
Gemfile
LICENSE
README.md
Rakefile
VERSION

README.md

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.