Class: SabredavClient::XmlRequestBuilder::ReportEventChanges

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

Instance Attribute Summary collapse

Attributes inherited from Base

#xml

Instance Method Summary collapse

Constructor Details

#initialize(sync_token) ⇒ ReportEventChanges

Returns a new instance of ReportEventChanges.



6
7
8
9
# File 'lib/sabredav_client/xml_request_builder/report_event_changes.rb', line 6

def initialize(sync_token)
  @sync_token = sync_token
  super()
end

Instance Attribute Details

#sync_tokenObject

Returns the value of attribute sync_token.



4
5
6
# File 'lib/sabredav_client/xml_request_builder/report_event_changes.rb', line 4

def sync_token
  @sync_token
end

Instance Method Details

#to_xmlObject



11
12
13
14
15
16
17
18
19
# File 'lib/sabredav_client/xml_request_builder/report_event_changes.rb', line 11

def to_xml
  xml.tag! "d:sync-collection", NAMESPACE do
    xml.tag! "d:sync-token", sync_token
    xml.tag! "d:sync-level", "1"
    xml.d :prop do
      xml.d :getetag
    end
  end
end