Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 

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)

About

Official Ruby library for Holiday API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages