Created
October 21, 2013 16:46
-
-
Save kerrizor/7086979 to your computer and use it in GitHub Desktop.
Parsing an iCal feed in Ruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rical' | |
require 'open-uri' | |
url = "[iCal feed URL here]" | |
open(url) do |ics| | |
#RiCal.parse returns an array of RiCalendar objects | |
@calendars = RiCal.parse(ics) | |
end | |
#boom, that's it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment