class Docxer::Relationships::Relationship

Attributes

id[RW]
target[RW]
type[RW]

Public Class Methods

new(id, type, target) click to toggle source
# File lib/docxer/relationships/relationship.rb, line 7
def initialize(id, type, target)
  @id = id
  @type = type
  @target = target
end

Public Instance Methods

build(xml) click to toggle source
# File lib/docxer/relationships/relationship.rb, line 13
def build(xml)
  xml.Relationship('Id' => @id, 'Type' => @type, 'Target' => @target)
end