class TwistedCaldav::Filter::Property

Attributes

name[RW]
text[RW]

Public Class Methods

new(name, text, parent = nil) click to toggle source
# File lib/twisted-caldav/filter.rb, line 65
def initialize(name, text, parent = nil)
  self.name = name
  self.text = text
  self.parent = parent
end

Public Instance Methods

build_xml(xml) click to toggle source
# File lib/twisted-caldav/filter.rb, line 71
def build_xml(xml)
  xml.tag! "cal:prop-filter", :name => self.name do
    xml.tag! "cal:text-match", self.text, :collation => "i;octet"
  end
end