Sha256: 024bf39ef7bb68a07dc1a683e3c54c1102edd036de89d9f279bf4388b35a2bfb

Contents?: true

Size: 658 Bytes

Versions: 3

Compression:

Stored size: 658 Bytes

Contents

# frozen_string_literal: true

require_relative 'series_text/number_string_reference'
module OoxmlParser
  # Class for parsing `c:tx` object
  class SeriesText < OOXMLDocumentObject
    # @return [NumberStringReference] String reference of series
    attr_accessor :string

    # Parse Order
    # @param [Nokogiri::XML:Node] node with Order
    # @return [Order] result of parsing
    def parse(node)
      node.xpath('*').each do |series_child|
        case series_child.name
        when 'strRef'
          @string = NumberStringReference.new(parent: self).parse(series_child)
        end
      end
      self
    end
  end

  Categories = SeriesText
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ooxml_parser-0.6.0 lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/series/series_text.rb
ooxml_parser-0.5.1 lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/series/series_text.rb
ooxml_parser-0.5.0 lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/series/series_text.rb