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
681 def call
682   uploaded_file = shrine_class.uploaded_file(storage: upload_storage, id: upload_location)
683   uploaded_file.open(**upload_open_options)
684   uploaded_file
685 rescue Shrine::FileNotFound
686 end