Class: Axlsx::Cfvo
- Inherits:
-
Object
- Object
- Axlsx::Cfvo
- Includes:
- OptionsParser, SerializedAttributes
- Defined in:
- lib/axlsx/workbook/worksheet/cfvo.rb
Overview
The recommended way to manage these rules is via Worksheet#add_conditional_formatting
Conditional Format Value Object Describes the values of the interpolation points in a gradient scale. This object is used by ColorScale, DataBar and IconSet classes
Instance Attribute Summary collapse
-
#gte ⇒ Boolean
Type (xsd:boolean) For icon sets, determines whether this threshold value uses the greater than or equal to operator.
-
#type ⇒ Symbol
Type (ST_CfvoType) The type of this conditional formatting value object.
-
#val ⇒ Object
Type (ST_Xstring) The value of the conditional formatting object This library will accept any value so long as it supports to_s.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Cfvo
constructor
Creates a new Cfvo object.
-
#to_xml_string(str = '') ⇒ String
serialize the Csvo object.
Methods included from SerializedAttributes
#declared_attributes, included, #serialized_attributes, #serialized_element_attributes, #serialized_tag
Methods included from OptionsParser
Constructor Details
#initialize(options = {}) ⇒ Cfvo
Creates a new Cfvo object
17 18 19 20 |
# File 'lib/axlsx/workbook/worksheet/cfvo.rb', line 17 def initialize( = {}) @gte = true end |
Instance Attribute Details
#gte ⇒ Boolean
Type (xsd:boolean) For icon sets, determines whether this threshold value uses the greater than or equal to operator. 0 indicates 'greater than' is used instead of 'greater than or equal to'. The default value is true
33 34 35 |
# File 'lib/axlsx/workbook/worksheet/cfvo.rb', line 33 def gte @gte end |
#type ⇒ Symbol
Type (ST_CfvoType) The type of this conditional formatting value object. options are num, percent, max, min, formula and percentile
27 28 29 |
# File 'lib/axlsx/workbook/worksheet/cfvo.rb', line 27 def type @type end |
#val ⇒ Object
Type (ST_Xstring) The value of the conditional formatting object This library will accept any value so long as it supports to_s
38 39 40 |
# File 'lib/axlsx/workbook/worksheet/cfvo.rb', line 38 def val @val end |
Instance Method Details
#to_xml_string(str = '') ⇒ String
serialize the Csvo object
56 57 58 |
# File 'lib/axlsx/workbook/worksheet/cfvo.rb', line 56 def to_xml_string(str = '') serialized_tag('cfvo', str) end |