Sha256: 53545675acb7c01d7d492184da75c01b21950bff0a015f8743278729bcaf39b1

Contents?: true

Size: 464 Bytes

Versions: 1

Compression:

Stored size: 464 Bytes

Contents

module OoxmlParser
  # Chart Style
  class ChartStyle < OOXMLDocumentObject
    attr_accessor :style_number

    # 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
        end
      end
      self
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ooxml_parser-0.2.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb