Sha256: d672994aae3b42dc9c132a39f711a756f5f5e60c818a6fa6d13baf31ea5c7e14

Contents?: true

Size: 469 Bytes

Versions: 4

Compression:

Stored size: 469 Bytes

Contents

module OoxmlParser
  # Class for parsing `c:idx` object
  class SeriesIndex < OOXMLDocumentObject
    # @return [Integer] value of index
    attr_accessor :value

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ooxml_parser-0.4.1 lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/series/series_index.rb
ooxml_parser-0.4.0 lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/series/series_index.rb
ooxml_parser-0.3.0 lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/series/series_index.rb
ooxml_parser-0.2.0 lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/series/series_index.rb