Class: Uppy::S3Multipart::App::Router
- Inherits:
-
Roda
- Object
- Roda
- Uppy::S3Multipart::App::Router
- Defined in:
- lib/uppy/s3_multipart/app.rb
Instance Method Summary collapse
Instance Method Details
#client_call(operation, **options) ⇒ Object
94 95 96 97 98 99 100 101 102 103 |
# File 'lib/uppy/s3_multipart/app.rb', line 94 def client_call(operation, **) client = opts[:client] overrides = opts[:options][operation] || {} overrides = overrides.call(request) if overrides.respond_to?(:call) = .merge(overrides) client.send(operation, **) end |
#param!(name) ⇒ Object
105 106 107 108 109 110 111 |
# File 'lib/uppy/s3_multipart/app.rb', line 105 def param!(name) value = request.params[name] request.halt 400, { error: "Missing \"#{name}\" parameter" } if value.nil? value end |