Class: Uniword::Ooxml::Relationships::ImageRelationship
- Inherits:
-
Relationship
- Object
- Lutaml::Model::Serializable
- Relationship
- Uniword::Ooxml::Relationships::ImageRelationship
- Defined in:
- lib/uniword/ooxml/relationships/image_relationship.rb
Overview
Image relationship type
Used for image relationships in documents
Instance Method Summary collapse
-
#initialize(target:) ⇒ ImageRelationship
constructor
A new instance of ImageRelationship.
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 |