Class: Google::Calendar
Overview
Public: API methods for a singular calendar.
Instance Method Summary collapse
-
#get(id) ⇒ Object
Public: Gets a single calendar.
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
#get(id) ⇒ Object
Public: Gets a single calendar.
id - The id of the calendar to retrieve.
Returns a hash of metadata for a calendar.
9 10 11 12 |
# File 'lib/gcal_unit/calendar.rb', line 9 def get(id) response = http_get "/calendars/#{id}" JSON.parse(response.body) end |