northworld/google_calendar — pull request #5 by sbounmy (2011-11-06 21:38:41+00:00)
Title: Fetch calendar's event given a calendar name

Changed :calendar option to be able to specify a calendar name.

When calendar is a name like "my personal calendar" (not containing any @):

cal = Google::Calendar.new :username => "blabla", :password => "bar", :calendar => "my personal calendar"
cal.events
# fetch user's all calendar.
# find calendar title corresponding to :calendar.
# get event feed url from calendar.
# fetch events from this url.

When calendar is a userID like "joe@gmail.com" (containing @) :

cal = Google::Calendar.new :username => "blabla", :password => "bar", :calendar => "joe@gmail.com"
cal.events
# construct event feed url from default feed url.
# fetch events from this url.