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: PartRegistry.find_by_key(:image).rel_type,
    target: target
  )
end