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
112 113 114 |
# File 'lib/axlsx/workbook/worksheet/auto_filter/filters.rb', line 112 def initialize(value) @val = value end |
Instance Attribute Details
#val ⇒ Object
Filter value used in the criteria.
118 119 120 |
# File 'lib/axlsx/workbook/worksheet/auto_filter/filters.rb', line 118 def val @val end |
Instance Method Details
#to_xml_string(str = '') ⇒ Object
Serializes the filter value object
122 123 124 |
# File 'lib/axlsx/workbook/worksheet/auto_filter/filters.rb', line 122 def to_xml_string(str = '') str << "<filter val='#{@val.to_s}' />" end |