class Tilia::DavAcl::Xml::Property::AclRestrictions

AclRestrictions property

This property represents {DAV:}acl-restrictions, as defined in RFC3744.

@copyright Copyright (C) 2007-2015 fruux GmbH (fruux.com/). @author Evert Pot (evertpot.com/) @license sabre.io/license/ Modified BSD License

Public Instance Methods

xml_serialize(writer) click to toggle source

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/dav_acl/xml/property/acl_restrictions.rb, line 32
def xml_serialize(writer)
  writer.write_element('{DAV:}grant-only')
  writer.write_element('{DAV:}no-invert')
end