Skip to content
Official Ruby library for Holiday API
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.gitignore
Gemfile
LICENSE
README.md
ruby-holidayapi.gemspec

README.md

ruby-holidayapi

Official Ruby library for Holiday API

Installation

gem install ruby-holidayapi

Usage

require 'ruby-holidayapi'

hapi = HolidayAPI::V1.new('_YOUR_API_KEY_')

parameters = {
  # Required
  'country' => 'US',
  'year'    => 2016,
  # Optional
  # 'month'    => 7,
  # 'day'      => 4,
  # 'previous' => true,
  # 'upcoming' => true,
  # 'public'   => true,
  # 'pretty'   => true,
}

response = hapi.holidays(parameters)
You can’t perform that action at this time.