mirror of
https://github.com/holidayapi/holidayapi-ruby.git
synced 2025-06-21 04:26:33 +00:00
Official Ruby library for Holiday API
https://holidayapi.com
lib | ||
.gitignore | ||
Gemfile | ||
LICENSE | ||
README.md | ||
ruby-holidayapi.gemspec |
ruby-holidayapi
Official Ruby library for Holiday API
Installation
gem install ruby-holidayapi
Usage
require 'ruby-holidayapi'
var HolidayAPI = require('node-holidayapi');
var hapi = new HolidayAPI('_YOUR_API_KEY').v1;
hapi = Holiday::V1('_YOUR_API_KEY_');
parameters = {
// Required
'country' => 'US',
'year' => 2016,
// Optional
// 'month' => 7,
// 'day' => 4,
// 'previous' => true,
// 'upcoming' => true,
// 'public' => true,
// 'pretty' => true,
}
response = hapi.holiday(parameters)