Class: Gotenberg::Exiftools

Inherits:
Object
  • Object
show all
Defined in:
lib/gotenberg/exiftools.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(io, metadata) ⇒ Exiftools

Returns a new instance of Exiftools.



12
13
14
15
# File 'lib/gotenberg/exiftools.rb', line 12

def initialize io, 
  @io = io
  @metadata = 
end

Instance Attribute Details

#ioObject (readonly)

Returns the value of attribute io.



6
7
8
# File 'lib/gotenberg/exiftools.rb', line 6

def io
  @io
end

#metadataObject (readonly)

Returns the value of attribute metadata.



6
7
8
# File 'lib/gotenberg/exiftools.rb', line 6

def 
  @metadata
end

Class Method Details

.modify(io, metadata) ⇒ Object



8
9
10
# File 'lib/gotenberg/exiftools.rb', line 8

def self.modify io, 
  new(io, ).call
end

Instance Method Details

#callObject



17
18
19
20
21
22
# File 'lib/gotenberg/exiftools.rb', line 17

def call
  set_attributes
  write

  @body
end

#exiftoolsObject



24
25
26
# File 'lib/gotenberg/exiftools.rb', line 24

def exiftools
  @exiftools ||= MiniExiftool.new(tempfile.path)
end