Sha256: 11babbc465ff7dfaca8d7d95dff8407581d9a200ae4e17fbdfc661708611b92b

Contents?: true

Size: 511 Bytes

Versions: 8

Compression:

Stored size: 511 Bytes

Contents

# frozen_string_literal: true

module OoxmlParser
  # Class for parsing `c:chart` object
  class ChartReference < OOXMLDocumentObject
    # @return [String] id of the chart
    attr_reader :id

    # Parse ChartReference
    # @param [Nokogiri::XML:Node] node with ChartReference
    # @return [ChartReference] result of parsing
    def parse(node)
      node.attributes.each do |key, value|
        case key
        when 'id'
          @id = value.value.to_s
        end
      end
      self
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ooxml_parser-0.37.1 lib/ooxml_parser/pptx_parser/presentation/slide/graphic_frame/graphic_frame/chart_reference.rb
ooxml_parser-0.37.0 lib/ooxml_parser/pptx_parser/presentation/slide/graphic_frame/graphic_frame/chart_reference.rb
ooxml_parser-0.36.1 lib/ooxml_parser/pptx_parser/presentation/slide/graphic_frame/graphic_frame/chart_reference.rb
ooxml_parser-0.36.0 lib/ooxml_parser/pptx_parser/presentation/slide/graphic_frame/graphic_frame/chart_reference.rb
ooxml_parser-0.35.0 lib/ooxml_parser/pptx_parser/presentation/slide/graphic_frame/graphic_frame/chart_reference.rb
ooxml_parser-0.34.2 lib/ooxml_parser/pptx_parser/presentation/slide/graphic_frame/graphic_frame/chart_reference.rb
ooxml_parser-0.34.1 lib/ooxml_parser/pptx_parser/presentation/slide/graphic_frame/graphic_frame/chart_reference.rb
ooxml_parser-0.34.0 lib/ooxml_parser/pptx_parser/presentation/slide/graphic_frame/graphic_frame/chart_reference.rb