class Tilia::CalDav::Xml::Property::EmailAddressSet
email-address-set property
This property represents the email-address-set property in the calendarserver.org/ns/ namespace.
It's a list of email addresses associated with a user.
Public Class Methods
__construct
@param array emails
# File lib/tilia/cal_dav/xml/property/email_address_set.rb, line 23 def initialize(emails) @emails = emails end
Public Instance Methods
Returns the email addresses
@return array
# File lib/tilia/cal_dav/xml/property/email_address_set.rb, line 30 def value @emails end
The xmlSerialize metod is called during xml writing.
Use the writer argument to write its own xml serialization.
An important note: do not create a parent element. Any element implementing XmlSerializble should only ever write what's considered its 'inner xml'.
The parent of the current element is responsible for writing a containing element.
This allows serializers to be re-used for different element names.
If you are opening new elements, you must also close them again.
@param Writer writer @return void
# File lib/tilia/cal_dav/xml/property/email_address_set.rb, line 51 def xml_serialize(writer) @emails.each do |email| writer.write_element('{http://calendarserver.org/ns/}email-address', email) end end