Class: Uniword::Ooxml::Relationships::ImageRelationship

Inherits:
Relationship
  • Object
show all
Defined in:
lib/uniword/ooxml/relationships/image_relationship.rb

Overview

Image relationship type

Used for image relationships in documents

Instance Method Summary collapse

Constructor Details

#initialize(target:) ⇒ ImageRelationship

Returns a new instance of ImageRelationship.



12
13
14
15
16
17
18
# File 'lib/uniword/ooxml/relationships/image_relationship.rb', line 12

def initialize(target:)
  super(
    id: "rId#{SecureRandom.hex(4)}",
    type: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",
    target: target
  )
end