Class: Gotenberg::Exiftools
- Inherits:
-
Object
- Object
- Gotenberg::Exiftools
- Defined in:
- lib/gotenberg/exiftools.rb
Instance Attribute Summary collapse
-
#io ⇒ Object
readonly
Returns the value of attribute io.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
- #exiftools ⇒ Object
-
#initialize(io, metadata) ⇒ Exiftools
constructor
A new instance of Exiftools.
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
#io ⇒ Object (readonly)
Returns the value of attribute io.
6 7 8 |
# File 'lib/gotenberg/exiftools.rb', line 6 def io @io end |
#metadata ⇒ Object (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
#call ⇒ Object
17 18 19 20 21 22 |
# File 'lib/gotenberg/exiftools.rb', line 17 def call set_attributes write @body end |
#exiftools ⇒ Object
24 25 26 |
# File 'lib/gotenberg/exiftools.rb', line 24 def exiftools @exiftools ||= MiniExiftool.new(tempfile.path) end |