class Shrine::Derivation::Retrieve

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

Methods

Public Instance

  1. call

Public Instance methods

call()

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

[show source]
    # File lib/shrine/plugins/derivation_endpoint.rb
670 def call
671   uploaded_file = shrine_class.uploaded_file(storage: upload_storage, id: upload_location)
672   uploaded_file if uploaded_file.exists?
673 end