Class: Shrine::Derivation::Retrieve
- Defined in:
- lib/shrine/plugins/derivation_endpoint.rb
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
-
#call ⇒ Object
Returns a Shrine::UploadedFile object pointing to the uploaded derivative if it exists on the storage.
Methods inherited from Command
Constructor Details
This class inherits a constructor from Shrine::Derivation::Command
Instance Method Details
#call ⇒ Object
Returns a Shrine::UploadedFile object pointing to the uploaded derivative if it exists on the storage.
668 669 670 671 |
# File 'lib/shrine/plugins/derivation_endpoint.rb', line 668 def call uploaded_file = shrine_class.uploaded_file(storage: upload_storage, id: upload_location) uploaded_file if uploaded_file.exists? end |