Class: OoxmlParser::Extension
- Inherits:
-
OOXMLDocumentObject
- Object
- OOXMLDocumentObject
- OoxmlParser::Extension
- Defined in:
- lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/extension_list/extension.rb
Overview
Class for ‘ext` data
Instance Attribute Summary collapse
-
#sparkline_groups ⇒ SparklineGroups
readonly
List of groups.
-
#table ⇒ X14Table
Table data in x14 namespace.
Attributes inherited from OOXMLDocumentObject
Instance Method Summary collapse
-
#parse(node) ⇒ Extension
Parse Extension data.
Methods inherited from OOXMLDocumentObject
#==, add_to_xmls_stack, copy_file_and_rename_to_zip, current_xml, dir, encrypted_file?, get_link_from_rels, #initialize, unzip_file, #with_data?
Methods included from OoxmlDocumentObjectHelper
Constructor Details
This class inherits a constructor from OoxmlParser::OOXMLDocumentObject
Instance Attribute Details
#sparkline_groups ⇒ SparklineGroups (readonly)
Returns list of groups.
9 10 11 |
# File 'lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/extension_list/extension.rb', line 9 def sparkline_groups @sparkline_groups end |
#table ⇒ X14Table
Returns table data in x14 namespace.
7 8 9 |
# File 'lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/extension_list/extension.rb', line 7 def table @table end |
Instance Method Details
#parse(node) ⇒ Extension
Parse Extension data
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/extension_list/extension.rb', line 14 def parse(node) node.xpath('*').each do |column_node| case column_node.name when 'table' @table = X14Table.new(parent: self).parse(column_node) when 'sparklineGroups' @sparkline_groups = SparklineGroups.new(parent: self).parse(column_node) end end self end |