BankHolidays
Ruby lib for retrieving UK bank holidays
Installation
Add this line to your application's Gemfile:
gem 'bank_holidays'
And then execute:
$ bundle
Or install it yourself as:
$ gem install bank_holidays
Usage
Return all bank holidays
holidays = BankHolidays.all
holidays.each do |holiday|
puts holiday.date
puts holiday.summary
end
Use a custom URL
holidays = BankHolidays.all('http://example.com/my-own-calendar-file.ics')
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request