Skip to content

Instantly share code, notes, and snippets.

@skwp
Created June 19, 2010 04:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skwp/444575 to your computer and use it in GitHub Desktop.
Save skwp/444575 to your computer and use it in GitHub Desktop.
# debugging from console...parse calendar
# note the #first call at the end, because the calendar seems to come
# in a one element array (not sure why)
cal = RiCal.parse_string(File.read("tmp/feeds/1_revolution_cafe/1f66991912759009fd90a29331e4a3f1")).first
# grab the first event
event = cal.events.first
# props
event.start_time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment