class TwistedCaldav::Filter::Component
Attributes
name[RW]
Public Class Methods
new(name, parent = nil)
click to toggle source
# File lib/twisted-caldav/filter.rb, line 27 def initialize(name, parent = nil) self.name = name self.parent = parent end
Public Instance Methods
build_xml(xml)
click to toggle source
# File lib/twisted-caldav/filter.rb, line 40 def build_xml(xml) xml.tag! "cal:comp-filter", :name => name do child.build_xml(xml) unless child.nil? end end
time_range(range)
click to toggle source
# File lib/twisted-caldav/filter.rb, line 32 def time_range(range) self.child = TimeRange.new(range, self) end
uid(uid)
click to toggle source
# File lib/twisted-caldav/filter.rb, line 36 def uid(uid) self.child = Property.new("UID", uid, self) end