Class: CalDAV::Filter::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/caldav/filter/base.rb

Direct Known Subclasses

Component, Property, TimeRange

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#childObject

Returns the value of attribute child



4
5
6
# File 'lib/caldav/filter/base.rb', line 4

def child
  @child
end

#parentObject

Returns the value of attribute parent



4
5
6
# File 'lib/caldav/filter/base.rb', line 4

def parent
  @parent
end

Instance Method Details

#build_xml(xml) ⇒ Object



14
15
16
# File 'lib/caldav/filter/base.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/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