class SabredavClient::XmlRequestBuilder::ProppatchPrincipal
Attributes
displayname[RW]
email[RW]
Public Class Methods
new(email, displayname)
click to toggle source
Calls superclass method
SabredavClient::XmlRequestBuilder::Base::new
# File lib/sabredav_client/xml_request_builder/proppatch_principal.rb, line 7 def initialize(email, displayname) @email = email @displayname = displayname super() end
Public Instance Methods
to_xml()
click to toggle source
# File lib/sabredav_client/xml_request_builder/proppatch_principal.rb, line 13 def to_xml xml.d :propertyupdate, SB_NAMESPACES do xml.d :set do xml.d :prop do xml.tag! "sb:email-address", email unless email.empty? xml.d :displayname, displayname unless displayname.empty? end end end end