Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby gem to get UK bank holidays from www.gov.uk
Ruby
branch: master
Failed to load latest commit information.
lib [RELEASE] 0.1.0
.gitignore [RELEASE] 0.1.0
Gemfile [RELEASE] 0.1.0
LICENSE [RELEASE] 0.1.0
README.md [RELEASE] 0.1.0
Rakefile [RELEASE] 0.1.0
VERSION [RELEASE] 0.1.0

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.