Class: Shrine::Derivation::Processed

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



563
564
565
566
567
568
569
# File 'lib/shrine/plugins/derivation_endpoint.rb', line 563

def call
  if upload
    derivation.retrieve || derivation.upload
  else
    derivation.generate
  end
end