Class: SabredavClient::XmlRequestBuilder::ReportEventChanges
- Defined in:
- lib/sabredav_client/xml_request_builder/report_event_changes.rb
Instance Attribute Summary collapse
-
#sync_token ⇒ Object
Returns the value of attribute sync_token.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(sync_token) ⇒ ReportEventChanges
constructor
A new instance of ReportEventChanges.
- #to_xml ⇒ Object
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_token ⇒ Object
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_xml ⇒ Object
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 |