class OoxmlParser::Relationship

Class for single relationship

Attributes

id[RW]

@return [String] id of relation

target[RW]

@return [String] target of relation

type[RW]

@return [String] type of relation

Public Instance Methods

parse(node) click to toggle source

Parse Relationship @param [Nokogiri::XML:Node] node with Relationship @return [Relationship] result of parsing

# 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