Sha256: 9e64e362828508eb2e639ee1e742946dcd054052e8e5df0f61e3a3f127160665

Contents?: true

Size: 629 Bytes

Versions: 2

Compression:

Stored size: 629 Bytes

Contents

require_relative 'timing/time_node'
module OoxmlParser
  class Timing
    attr_accessor :time_node_list, :build_list, :extension_list

    def initialize(time_node_list = [], build_list = [], extension_list = [])
      @time_node_list = time_node_list
      @build_list = build_list
      @extension_list = extension_list
    end

    def self.parse(timing_node)
      timing = Timing.new
      timing_node.xpath('*').each do |timing_node_child|
        case timing_node_child.name
        when 'tnLst'
          timing.time_node_list = TimeNode.parse_list(timing_node_child)
        end
      end
      timing
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ooxml_parser-0.1.2 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/timing.rb
ooxml_parser-0.1.1 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/timing.rb