Class: OoxmlParser::DifferentialFormattingRecord
- Inherits:
-
OOXMLDocumentObject
- Object
- OOXMLDocumentObject
- OoxmlParser::DifferentialFormattingRecord
- Defined in:
- lib/ooxml_parser/xlsx_parser/workbook/worksheet/table_part/extension_list/extension/conditional_formattings/conditional_formatting/conditional_formatting_rule/differential_formatting_record.rb
Overview
Class for ‘dxf` data
Instance Attribute Summary collapse
-
#borders ⇒ Borders
readonly
Borders.
-
#fill ⇒ Fill
readonly
Fill.
-
#font ⇒ Font
readonly
Font.
-
#number_format ⇒ NumberFormat
readonly
Number format.
Attributes inherited from OOXMLDocumentObject
Instance Method Summary collapse
-
#parse(node) ⇒ DifferentialFormattingRecord
Parse DifferentialFormattingRecord data.
Methods inherited from OOXMLDocumentObject
#==, #boolean_attribute_value, #initialize, #parse_xml, #with_data?
Methods included from OoxmlObjectAttributeHelper
#attribute_enabled?, #option_enabled?
Methods included from OoxmlDocumentObjectHelper
Constructor Details
This class inherits a constructor from OoxmlParser::OOXMLDocumentObject
Instance Attribute Details
#borders ⇒ Borders (readonly)
Returns Borders.
13 14 15 |
# File 'lib/ooxml_parser/xlsx_parser/workbook/worksheet/table_part/extension_list/extension/conditional_formattings/conditional_formatting/conditional_formatting_rule/differential_formatting_record.rb', line 13 def borders @borders end |
#fill ⇒ Fill (readonly)
Returns Fill.
11 12 13 |
# File 'lib/ooxml_parser/xlsx_parser/workbook/worksheet/table_part/extension_list/extension/conditional_formattings/conditional_formatting/conditional_formatting_rule/differential_formatting_record.rb', line 11 def fill @fill end |
#font ⇒ Font (readonly)
Returns Font.
7 8 9 |
# File 'lib/ooxml_parser/xlsx_parser/workbook/worksheet/table_part/extension_list/extension/conditional_formattings/conditional_formatting/conditional_formatting_rule/differential_formatting_record.rb', line 7 def font @font end |
#number_format ⇒ NumberFormat (readonly)
Returns Number format.
9 10 11 |
# File 'lib/ooxml_parser/xlsx_parser/workbook/worksheet/table_part/extension_list/extension/conditional_formattings/conditional_formatting/conditional_formatting_rule/differential_formatting_record.rb', line 9 def number_format @number_format end |
Instance Method Details
#parse(node) ⇒ DifferentialFormattingRecord
Parse DifferentialFormattingRecord data
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/ooxml_parser/xlsx_parser/workbook/worksheet/table_part/extension_list/extension/conditional_formattings/conditional_formatting/conditional_formatting_rule/differential_formatting_record.rb', line 18 def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'font' @font = Font.new(parent: self).parse(node_child) when 'numFmt' @number_format = NumberFormat.new(parent: self).parse(node_child) when 'fill' @fill = Fill.new(parent: self).parse(node_child) when 'border' @borders = XlsxBorder.new(parent: self).parse(node_child) end end self end |