Class: XTF::Search::Element::SectionType
- Inherits:
-
Object
- Object
- XTF::Search::Element::SectionType
- Defined in:
- lib/xtf/search/element/section_type.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
one Term or Clause.
-
#tag_name ⇒ Object
readonly
Returns the value of attribute tag_name.
Instance Method Summary collapse
-
#initialize(content = nil) ⇒ SectionType
constructor
A new instance of SectionType.
- #to_xml ⇒ Object
- #to_xml_node ⇒ Object
Constructor Details
#initialize(content = nil) ⇒ SectionType
Returns a new instance of SectionType.
6 7 8 9 |
# File 'lib/xtf/search/element/section_type.rb', line 6 def initialize(content = nil) @tag_name = "sectionType" @content = content end |
Instance Attribute Details
#content ⇒ Object
one Term or Clause
3 4 5 |
# File 'lib/xtf/search/element/section_type.rb', line 3 def content @content end |
#tag_name ⇒ Object (readonly)
Returns the value of attribute tag_name.
4 5 6 |
# File 'lib/xtf/search/element/section_type.rb', line 4 def tag_name @tag_name end |
Instance Method Details
#to_xml ⇒ Object
16 17 18 |
# File 'lib/xtf/search/element/section_type.rb', line 16 def to_xml to_xml_node.to_s end |