Class: Shrine::Derivation::Generate
- Defined in:
- lib/shrine/plugins/derivation_endpoint.rb
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
Constructor Details
This class inherits a constructor from Shrine::Derivation::Command
Instance Method Details
#call(file = nil) ⇒ Object
579 580 581 582 583 |
# File 'lib/shrine/plugins/derivation_endpoint.rb', line 579 def call(file = nil) derivative = generate(file) derivative = normalize(derivative) derivative end |