Class: Shrine::Derivation::Response

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

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



468
469
470
471
472
473
474
# File 'lib/shrine/plugins/derivation_endpoint.rb', line 468

def call(env)
  if upload
    upload_response(env)
  else
    local_response(env)
  end
end