class OoxmlParser::ChartReference

Class for parsing ‘c:chart` object

Attributes

id[R]

@return [String] id of the chart

Public Instance Methods

parse(node) click to toggle source

Parse ChartReference @param [Nokogiri::XML:Node] node with ChartReference @return [ChartReference] result of parsing

# File lib/ooxml_parser/pptx_parser/presentation/slide/graphic_frame/graphic_frame/chart_reference.rb, line 12
def parse(node)
  node.attributes.each do |key, value|
    case key
    when 'id'
      @id = value.value.to_s
    end
  end
  self
end