class Docxer::Word::Relationships::Relationship
Attributes
id[RW]
target[RW]
type[RW]
Public Class Methods
new(id, type, target)
click to toggle source
# File lib/docxer/word/relationships/relationship.rb, line 8 def initialize(id, type, target) @id = id @type = type @target = target end
Public Instance Methods
build(xml)
click to toggle source
# File lib/docxer/word/relationships/relationship.rb, line 14 def build(xml) xml.Relationship('Id' => @id, 'Type' => @type, 'Target' => @target) end