Class: CalDAV::Filter::Property
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#text ⇒ Object
Returns the value of attribute text.
Attributes inherited from Base
Instance Method Summary collapse
- #build_xml(xml) ⇒ Object
-
#initialize(name, text, parent = nil) ⇒ Property
constructor
A new instance of Property.
Methods inherited from Base
Constructor Details
#initialize(name, text, parent = nil) ⇒ Property
Returns a new instance of Property.
65 66 67 68 69 |
# File 'lib/caldav/filter.rb', line 65 def initialize(name, text, parent = nil) self.name = name self.text = text self.parent = parent end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
63 64 65 |
# File 'lib/caldav/filter.rb', line 63 def name @name end |
#text ⇒ Object
Returns the value of attribute text.
63 64 65 |
# File 'lib/caldav/filter.rb', line 63 def text @text end |
Instance Method Details
#build_xml(xml) ⇒ Object
71 72 73 74 75 |
# File 'lib/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 |