Class: TwistedCaldav::Filter::Component
- Defined in:
- lib/twisted-caldav/filter.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from Base
Instance Method Summary collapse
- #build_xml(xml) ⇒ Object
-
#initialize(name, parent = nil) ⇒ Component
constructor
A new instance of Component.
- #time_range(range) ⇒ Object
- #uid(uid) ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(name, parent = nil) ⇒ Component
Returns a new instance of Component.
27 28 29 30 |
# File 'lib/twisted-caldav/filter.rb', line 27 def initialize(name, parent = nil) self.name = name self.parent = parent end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
25 26 27 |
# File 'lib/twisted-caldav/filter.rb', line 25 def name @name end |
Instance Method Details
#build_xml(xml) ⇒ Object
40 41 42 43 44 |
# 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 |