Class: SabredavClient::XmlRequestBuilder::ProppatchCalendar
- Defined in:
- lib/sabredav_client/xml_request_builder/proppatch_calendar.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#displayname ⇒ Object
Returns the value of attribute displayname.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(displayname = nil, description = nil) ⇒ ProppatchCalendar
constructor
A new instance of ProppatchCalendar.
- #to_xml ⇒ Object
Constructor Details
#initialize(displayname = nil, description = nil) ⇒ ProppatchCalendar
Returns a new instance of ProppatchCalendar.
7 8 9 10 11 |
# File 'lib/sabredav_client/xml_request_builder/proppatch_calendar.rb', line 7 def initialize(displayname = nil, description = nil) @displayname = displayname @description = description super() end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
5 6 7 |
# File 'lib/sabredav_client/xml_request_builder/proppatch_calendar.rb', line 5 def description @description end |
#displayname ⇒ Object
Returns the value of attribute displayname.
5 6 7 |
# File 'lib/sabredav_client/xml_request_builder/proppatch_calendar.rb', line 5 def displayname @displayname end |
Instance Method Details
#to_xml ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/sabredav_client/xml_request_builder/proppatch_calendar.rb', line 13 def to_xml xml.d :propertyupdate, C_NAMESPACES do xml.d :set do xml.d :prop do xml.d :displayname, displayname unless displayname.nil? xml.tag! "c:calendar-description", description unless description.nil? end end end end |