Sha256: e158b401ae72cd9d569d30fca237a4e54ac81ddc05c931a0d1d9de13ddd331cb

Contents?: true

Size: 553 Bytes

Versions: 2

Compression:

Stored size: 553 Bytes

Contents

# frozen_string_literal: true

module OoxmlParser
  # Class for `x14:dataField` data
  class X14DataField < OOXMLDocumentObject
    # @return [Symbol] pivot show as type
    attr_reader :pivot_show_as

    # Parse X14DataField data
    # @param [Nokogiri::XML:Element] node with X14DataField data
    # @return [X14Table] value of X14DataField data
    def parse(node)
      node.attributes.each do |key, value|
        case key
        when 'pivotShowAs'
          @pivot_show_as = value.value.to_sym
        end
      end
      self
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ooxml_parser-0.37.1 lib/ooxml_parser/xlsx_parser/workbook/worksheet/table_part/extension_list/extension/x14_data_field.rb
ooxml_parser-0.37.0 lib/ooxml_parser/xlsx_parser/workbook/worksheet/table_part/extension_list/extension/x14_data_field.rb