Sha256: 36a5b9aa7736ff30d055603f056528a111c9a7b0b30d01c1c8f5d3d69a121d48

Contents?: true

Size: 657 Bytes

Versions: 48

Compression:

Stored size: 657 Bytes

Contents

# frozen_string_literal: true

module OoxmlParser
  # Chart Style
  class ChartStyle < OOXMLDocumentObject
    attr_accessor :style_number
    # @return [OleObject] ole object
    attr_accessor :ole_object

    # Parse ChartStyle
    # @param [Nokogiri::XML:Node] node with Relationships
    # @return [ChartStyle] result of parsing
    def parse(node)
      node.xpath('*').each do |node_child|
        case node_child.name
        when 'style'
          @style_number = node_child.attribute('val').value.to_i
        when 'oleObject'
          @ole_object = OleObject.new(parent: self).parse(node_child)
        end
      end
      self
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
ooxml_parser-0.37.1 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.37.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.36.1 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.36.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.35.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.34.2 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.34.1 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.34.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.33.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.32.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.31.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.30.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.29.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.28.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.27.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.26.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.25.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.24.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.23.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb
ooxml_parser-0.22.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb