Class: RBGlitch::CalendarAPI

Inherits:
BaseAPI
  • Object
show all
Defined in:
lib/rbglitch/calendar_api.rb

Instance Method Summary collapse

Methods inherited from BaseAPI

#initialize

Constructor Details

This class inherits a constructor from RBGlitch::BaseAPI

Instance Method Details

#get_holidays(page = 1, per_page = 10) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/rbglitch/calendar_api.rb', line 9

def get_holidays(page=1, per_page=10)
  params = {
    'page' => page,
    'per_page' => per_page
  }

  send('getHolidays', params)
end