class SabredavClient::XmlRequestBuilder::ReportVTODO

Public Instance Methods

to_xml() click to toggle source
# File lib/sabredav_client/xml_request_builder/report_vtodo.rb, line 5
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=> 'VTODO'
      end
    end
  end
end