class OoxmlParser::Relationship
Class for single relationship
Attributes
@return [String] id of relation
@return [String] target of relation
@return [String] type of relation
Public Instance Methods
Source
# File lib/ooxml_parser/common_parser/common_data/relationships/relationship.rb, line 16 def parse(node) node.attributes.each do |key, value| case key when 'Id' @id = value.value when 'Type' @type = value.value when 'Target' @target = value.value end end self end
Parse Relationship
@param [Nokogiri::XML:Node] node with Relationship
@return [Relationship] result of parsing