mirror of
https://github.com/holidayapi/holidayapi-ruby.git
synced 2025-06-21 12:36:34 +00:00
Fixed usage example
This commit is contained in:
parent
56201d0311
commit
ba067417bf
1 changed files with 2 additions and 5 deletions
|
@ -12,10 +12,7 @@ gem install ruby-holidayapi
|
|||
```ruby
|
||||
require 'ruby-holidayapi'
|
||||
|
||||
var HolidayAPI = require('node-holidayapi');
|
||||
var hapi = new HolidayAPI('_YOUR_API_KEY').v1;
|
||||
|
||||
hapi = Holiday::V1('_YOUR_API_KEY_');
|
||||
hapi = Holiday::V1.new('_YOUR_API_KEY_')
|
||||
|
||||
parameters = {
|
||||
// Required
|
||||
|
@ -30,5 +27,5 @@ parameters = {
|
|||
// 'pretty' => true,
|
||||
}
|
||||
|
||||
response = hapi.holiday(parameters)
|
||||
response = hapi.holidays(parameters)
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue