Grouping multiple events in a single ics file (icalendar stream)

124 views
Skip to first unread message

Fefo

unread,
Nov 30, 2009, 9:28:22 PM11/30/09
to RiCal
Hi, I want to group multiple events in a single ics file (icalendar
stream) according to the RFC this can be done. but o have no idea
how , anyone can help me , give me an exapmple ? Thanks

Here is what rfc says:

However, multiple iCalendar objects can be sequentially grouped
together in an iCalendar stream. The first line and last line of
the
iCalendar object MUST contain a pair of iCalendar object delimiter
strings. The syntax for an iCalendar stream is as follows:

icalstream = 1*icalobject

icalobject = "BEGIN" ":" "VCALENDAR" CRLF
icalbody
"END" ":" "VCALENDAR" CRLF

Adam Williams

unread,
Dec 1, 2009, 1:20:17 PM12/1/09
to rica...@googlegroups.com
@calendar = MyCalendarModel.find
RiCal.Calendar do |ical|
ical.add_x_property 'X-WR-CALNAME', 'My Calendar'
@calendar.events_since(31.days.ago).each do |e|
ical.event do |ievent|
....
end
end
end.export

Something like that...

HTH, Adam Williams
> --
>
> You received this message because you are subscribed to the Google Groups "RiCal" group.
> To post to this group, send email to rica...@googlegroups.com.
> To unsubscribe from this group, send email to rical_gem+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rical_gem?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages