class TwistedCaldav::Filter::Base

Attributes

child[RW]
parent[RW]

Public Instance Methods

build_xml(xml) click to toggle source
# File lib/twisted-caldav/filter.rb, line 14
def build_xml(xml)
  #do nothing
end
child=(child) click to toggle source
# File lib/twisted-caldav/filter.rb, line 18
def child=(child)
  @child = child
  child.parent = self
end
to_xml(xml = Builder::XmlMarkup.new(:indent => 2)) click to toggle source
# File lib/twisted-caldav/filter.rb, line 6
def to_xml(xml = Builder::XmlMarkup.new(:indent => 2))
  if parent
    parent.to_xml
  else
    build_xml(xml)
  end
end