class SabredavClient::XmlRequestBuilder::ReportVEVENT
Attributes
tend[RW]
tstart[RW]
Public Class Methods
new( tstart=nil, tend=nil )
click to toggle source
Calls superclass method
SabredavClient::XmlRequestBuilder::Base::new
# File lib/sabredav_client/xml_request_builder/report_vevent.rb, line 7 def initialize( tstart=nil, tend=nil ) @tstart = tstart @tend = tend super() end
Public Instance Methods
to_xml()
click to toggle source
# File lib/sabredav_client/xml_request_builder/report_vevent.rb, line 13 def to_xml xml.c 'calendar-query'.intern, C_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