class Tilia::CalDav::Exception::InvalidComponentType

InvalidComponentType

Public Instance Methods

serialize(_server, error_node) click to toggle source

Adds in extra information in the xml response.

This method adds the {CALDAV:}supported-calendar-component as defined in rfc4791

@param DAVServer server @param DOMElement error_node @return void

# File lib/tilia/cal_dav/exception/invalid_component_type.rb, line 13
def serialize(_server, error_node)
  error = LibXML::XML::Node.new('cal:supported-calendar-component')
  LibXML::XML::Namespace.new(error, 'cal', Plugin::NS_CALDAV)
  error_node << error
end