Sha256: 3b48279397e13865c31d676b683d5e6d507cef0faa59edcdb3d284039a9b956f

Contents?: true

Size: 462 Bytes

Versions: 2

Compression:

Stored size: 462 Bytes

Contents

# XLSX 2007 Chart Style
module OoxmlParser
  class Office2007ChartStyle
    attr_accessor :style_number

    def self.parse(chart_style_node)
      chart_style = Office2007ChartStyle.new
      chart_style_node.xpath('*').each do |chart_style_node_child|
        case chart_style_node_child.name
        when 'style'
          chart_style.style_number = chart_style_node_child.attribute('val').value.to_i
        end
      end
      chart_style
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ooxml_parser-0.1.2 lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart_style/office_2007_chart_style.rb
ooxml_parser-0.1.1 lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart_style/office_2007_chart_style.rb