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