Class: SabredavClient::XmlRequestBuilder::ReportVTODO

Inherits:
Base
  • Object
show all
Defined in:
lib/sabredav_client/xml_request_builder/report_vtodo.rb

Instance Attribute Summary

Attributes inherited from Base

#xml

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from SabredavClient::XmlRequestBuilder::Base

Instance Method Details

#to_xmlObject



5
6
7
8
9
10
11
12
13
14
15
16
17
# 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