Sha256: 43d91856bad6990a2a638e4b49d9d0f80802db80697a4dc14738ded502fe1524

Contents?: true

Size: 731 Bytes

Versions: 2

Compression:

Stored size: 731 Bytes

Contents

module OoxmlParser
  class HyperlinkForHover
    attr_accessor :id, :action, :sound

    def initialize(id = '', action = '')
      @id = id
      @action = action
    end

    def self.parse(hyperlink_for_hover_node)
      hyperlink_for_hover = HyperlinkForHover.new
      hyperlink_for_hover.id = hyperlink_for_hover_node.attribute('id').value
      hyperlink_for_hover.action = hyperlink_for_hover_node.attribute('action').value
      hyperlink_for_hover_node.xpath('*').each do |hyperlink_for_hover_node_child|
        case hyperlink_for_hover_node_child.name
        when 'snd'
          hyperlink_for_hover.sound = Sound.parse(hyperlink_for_hover_node_child)
        end
      end
      hyperlink_for_hover
    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/shape/non_visual_shape_properties/hyperlinks/hyperlink_for_hover.rb
ooxml_parser-0.1.1 lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/shape/non_visual_shape_properties/hyperlinks/hyperlink_for_hover.rb