class Shrine::Derivation::Opened

  1. lib/shrine/plugins/derivation_endpoint.rb
Superclass: Command

Methods

Public Instance

  1. call

Public Instance methods

call()

Returns opened Shrine::UploadedFile object pointing to the uploaded if it exists on the storage.

[show source]
    # File lib/shrine/plugins/derivation_endpoint.rb
686 def call
687   uploaded_file = shrine_class.uploaded_file(storage: upload_storage, id: upload_location)
688   uploaded_file.open(**upload_open_options)
689   uploaded_file
690 rescue Shrine::FileNotFound
691 end