Class: Shrine::Derivation::Delete

Inherits:
Command
  • Object
show all
Defined in:
lib/shrine/plugins/derivation_endpoint.rb

Instance Attribute Summary

Attributes inherited from Command

#derivation

Instance Method Summary collapse

Methods inherited from Command

delegate, #initialize

Constructor Details

This class inherits a constructor from Shrine::Derivation::Command

Instance Method Details

#callObject

Deletes the uploaded derivation result from the storage.


692
693
694
# File 'lib/shrine/plugins/derivation_endpoint.rb', line 692

def call
  storage.delete(upload_location)
end