Skip to content

Instantly share code, notes, and snippets.

@kerrizor
Created October 21, 2013 16:46
Show Gist options
  • Save kerrizor/7086979 to your computer and use it in GitHub Desktop.
Save kerrizor/7086979 to your computer and use it in GitHub Desktop.
Parsing an iCal feed in Ruby
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