Class: Google::CalendarList

Inherits:
Client
  • Object
show all
Defined in:
lib/gcal_unit/calendar_list.rb

Overview

Public: API methods for a list of calendars.

Instance Method Summary collapse

Methods inherited from Client

#http_delete, #http_get, #http_post, #http_put, #initialize

Constructor Details

This class inherits a constructor from Google::Client

Instance Method Details

#listObject

Public: Gets a list of calendars for the user specified with the provided token.

Returns a hash of metadata for a calendar list.



8
9
10
11
# File 'lib/gcal_unit/calendar_list.rb', line 8

def list
  response = http_get '/users/me/calendarList'
  JSON.parse response.body
end