OK, I see, there's no Occurrence object, there is just a series of
"child" Event objects without recurrence rules.
The fix I came up with is to embed the ID of my parent object into the
occurrences while I enumerate them:
@occurrences = @events.collect do |e|
e.ical.occurrences(:overlapping => [DateTime.new(@year,
@month).beginning_of_month, DateTime.new(@year,
@month).end_of_month]).each { |o| o.add_related_to e.id.to_s }
end.flatten!
So, for a given month, I grab all events, enumerate the occurrences
and put the parent event ID into the related_to property for each.
I used related_to because I doubt I'll use it for anything else, but
is there a defined place where this information is supposed to go?