Class: OoxmlParser::X14Table

Inherits:
OOXMLDocumentObject show all
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

Attributes inherited from OOXMLDocumentObject

#parent

Instance Method Summary collapse

Methods inherited from OOXMLDocumentObject

#==, #boolean_attribute_value, #initialize, #parse_xml, #with_data?

Methods included from OoxmlObjectAttributeHelper

#attribute_enabled?, #option_enabled?

Methods included from OoxmlDocumentObjectHelper

#to_hash

Constructor Details

This class inherits a constructor from OoxmlParser::OOXMLDocumentObject

Instance Attribute Details

#alt_textString

Returns alternate text for table.

Returns:

  • (String)

    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_summaryString

Returns alternate text summary table.

Returns:

  • (String)

    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

Parameters:

  • node (Nokogiri::XML:Element)

    with X14Table data

Returns:



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