Class: CalDAV::Filter::Base
- Inherits:
-
Object
- Object
- CalDAV::Filter::Base
- Defined in:
- lib/caldav/filter/base.rb
Instance Attribute Summary (collapse)
-
- (Object) child
Returns the value of attribute child.
-
- (Object) parent
Returns the value of attribute parent.
Instance Method Summary (collapse)
Instance Attribute Details
- (Object) child
Returns the value of attribute child
4 5 6 |
# File 'lib/caldav/filter/base.rb', line 4 def child @child end |
- (Object) parent
Returns the value of attribute parent
4 5 6 |
# File 'lib/caldav/filter/base.rb', line 4 def parent @parent end |
Instance Method Details
- (Object) build_xml(xml)
14 15 16 |
# File 'lib/caldav/filter/base.rb', line 14 def build_xml(xml) #do nothing end |
- (Object) to_xml(xml = Builder::XmlMarkup.new(:indent => 2))
6 7 8 9 10 11 12 |
# File 'lib/caldav/filter/base.rb', line 6 def to_xml(xml = Builder::XmlMarkup.new(:indent => 2)) if parent parent.to_xml else build_xml(xml) end end |