Class: SabredavClient::XmlRequestBuilder::ProppatchPrincipal
- Defined in:
- lib/sabredav_client/xml_request_builder/proppatch_principal.rb
Instance Attribute Summary collapse
-
#displayname ⇒ Object
Returns the value of attribute displayname.
-
#email ⇒ Object
Returns the value of attribute email.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(email, displayname) ⇒ ProppatchPrincipal
constructor
A new instance of ProppatchPrincipal.
- #to_xml ⇒ Object
Constructor Details
#initialize(email, displayname) ⇒ ProppatchPrincipal
Returns a new instance of ProppatchPrincipal.
7 8 9 10 11 |
# File 'lib/sabredav_client/xml_request_builder/proppatch_principal.rb', line 7 def initialize(email, displayname) @email = email @displayname = displayname super() end |
Instance Attribute Details
#displayname ⇒ Object
Returns the value of attribute displayname.
5 6 7 |
# File 'lib/sabredav_client/xml_request_builder/proppatch_principal.rb', line 5 def displayname @displayname end |
#email ⇒ Object
Returns the value of attribute email.
5 6 7 |
# File 'lib/sabredav_client/xml_request_builder/proppatch_principal.rb', line 5 def email @email 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_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 |