Public Instance methods
call(derivative = nil, **)
Uploads the derivation result to the dedicated location on the storage. If a file object is given, uploads that to the storage, otherwise calls the derivation block and uploads the result.
[show source]
# File lib/shrine/plugins/derivation_endpoint.rb 651 def call(derivative = nil, **) 652 if derivative 653 upload(derivative, **) 654 else 655 upload(derivation.generate, delete: true, **) 656 end 657 end