Sha256: 714c1e546d8ffa1ebc4162ea5afff19d5a17d9ba1775c022e78d90176a68c29d
Contents?: true
Size: 1.12 KB
Versions: 48
Compression:
Stored size: 1.12 KB
Contents
# frozen_string_literal: true module OoxmlParser # Class for `cNvPr` data class CommonNonVisualProperties < OOXMLDocumentObject attr_accessor :name, :id, :on_click_hyperlink, :hyperlink_for_hover # @return [String] title of shape attr_accessor :title # @return [String] description of shape attr_accessor :description # Parse CommonNonVisualProperties object # @param node [Nokogiri::XML:Element] node to parse # @return [CommonNonVisualProperties] result of parsing def parse(node) node.attributes.each do |key, value| case key when 'name' @name = value.value when 'id' @id = value.value when 'title' @title = value.value when 'descr' @description = value.value end end node.xpath('*').each do |node_child| case node_child.name when 'hlinkClick' @on_click_hyperlink = Hyperlink.new(parent: self).parse(node_child) when 'hlinkHover' @hyperlink_for_hover = Hyperlink.new(parent: self).parse(node_child) end end self end end end
Version data entries
48 entries across 48 versions & 1 rubygems