Class: Axlsx::Filters::Filter
- Inherits:
-
Object
- Object
- Axlsx::Filters::Filter
- Defined in:
- lib/axlsx/workbook/worksheet/auto_filter/filters.rb
Overview
This class expresses a filter criteria value.
Instance Attribute Summary collapse
-
#val ⇒ Object
Filter value used in the criteria.
Instance Method Summary collapse
-
#initialize(value) ⇒ Filter
constructor
Creates a new filter value object.
-
#to_xml_string(str = +'')) ⇒ Object
Serializes the filter value object.
Constructor Details
#initialize(value) ⇒ Filter
Creates a new filter value object
116 117 118 |
# File 'lib/axlsx/workbook/worksheet/auto_filter/filters.rb', line 116 def initialize(value) @val = value end |
Instance Attribute Details
#val ⇒ Object
Filter value used in the criteria.
121 122 123 |
# File 'lib/axlsx/workbook/worksheet/auto_filter/filters.rb', line 121 def val @val end |
Instance Method Details
#to_xml_string(str = +'')) ⇒ Object
Serializes the filter value object
125 126 127 |
# File 'lib/axlsx/workbook/worksheet/auto_filter/filters.rb', line 125 def to_xml_string(str = +'') str << "<filter val='#{@val}' />" end |