Sha256: e426ea6949461e19146df8551ac4ed30eb6a4a1211820f4923e92dfe43a84fdb
Contents?: true
Size: 616 Bytes
Versions: 1
Compression:
Stored size: 616 Bytes
Contents
module OoxmlParser # Class for single relationship class Relationship # @return [String] id of relation attr_accessor :id # @return [String] type of relation attr_accessor :type # @return [String] target of relation attr_accessor :target # Parse Relationship # @param [Nokogiri::XML:Node] node with Relationship # @return [Relationship] result of parsing def self.parse(node) rel = Relationship.new rel.id = node.attribute('Id').value rel.type = node.attribute('Type').value rel.target = node.attribute('Target').value rel end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ooxml_parser-0.1.2 | lib/ooxml_parser/common_parser/common_data/relationships/relationship.rb |