Class: Shrine::Derivation::Generate

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

Instance Method Summary collapse

Instance Method Details

#call(file = nil) ⇒ Object



582
583
584
585
586
# File 'lib/shrine/plugins/derivation_endpoint.rb', line 582

def call(file = nil)
  derivative = generate(file)
  derivative = normalize(derivative)
  derivative
end