Class: OoxmlParser::X14Table
- Inherits:
-
OOXMLDocumentObject
- Object
- OOXMLDocumentObject
- OoxmlParser::X14Table
- Defined in:
- lib/ooxml_parser/xlsx_parser/workbook/worksheet/table_part/extension_list/extension/x14_table.rb
Overview
Class for ‘x14:table` data
Instance Attribute Summary collapse
-
#alt_text ⇒ String
Alternate text for table.
-
#alt_text_summary ⇒ String
Alternate text summary table.
Attributes inherited from OOXMLDocumentObject
Instance Method Summary collapse
-
#parse(node) ⇒ X14Table
Parse X14Table 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
#alt_text ⇒ String
Returns alternate text for table.
7 8 9 |
# File 'lib/ooxml_parser/xlsx_parser/workbook/worksheet/table_part/extension_list/extension/x14_table.rb', line 7 def alt_text @alt_text end |
#alt_text_summary ⇒ String
Returns alternate text summary table.
9 10 11 |
# File 'lib/ooxml_parser/xlsx_parser/workbook/worksheet/table_part/extension_list/extension/x14_table.rb', line 9 def alt_text_summary @alt_text_summary end |
Instance Method Details
#parse(node) ⇒ X14Table
Parse X14Table data
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/ooxml_parser/xlsx_parser/workbook/worksheet/table_part/extension_list/extension/x14_table.rb', line 14 def parse(node) node.attributes.each do |key, value| case key when 'altText' @alt_text = value.value.to_s when 'altTextSummary' @alt_text_summary = value.value.to_s end end self end |