class TwistedCaldav::Request::ReportVEVENT

Attributes

tend[RW]
tstart[RW]

Public Class Methods

new( tstart=nil, tend=nil ) click to toggle source
Calls superclass method TwistedCaldav::Request::Base::new
# File lib/twisted-caldav/request.rb, line 37
def initialize( tstart=nil, tend=nil )
    @tstart = tstart
    @tend   = tend
    super()
end

Public Instance Methods

to_xml() click to toggle source
# File lib/twisted-caldav/request.rb, line 43
def to_xml
    xml.c 'calendar-query'.intern, NAMESPACES do
        xml.d :prop do
            #xml.d :getetag
            xml.c 'calendar-data'.intern
        end
        xml.c :filter do
            xml.c 'comp-filter'.intern, :name=> 'VCALENDAR' do
                xml.c 'comp-filter'.intern, :name=> 'VEVENT' do
                    xml.c 'time-range'.intern, :start=> "#{tstart}Z", :end=> "#{tend}Z"
                end
            end
        end
    end
end