Class: BreezyPDF::Middleware
- Inherits:
-
Object
- Object
- BreezyPDF::Middleware
- Defined in:
- lib/breezy_pdf/middleware.rb
Overview
:nodoc
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, _options = {}) ⇒ Middleware
constructor
A new instance of Middleware.
Constructor Details
#initialize(app, _options = {}) ⇒ Middleware
Returns a new instance of Middleware.
6 7 8 |
# File 'lib/breezy_pdf/middleware.rb', line 6 def initialize(app, = {}) @app = app end |
Instance Method Details
#call(env) ⇒ Object
10 11 12 |
# File 'lib/breezy_pdf/middleware.rb', line 10 def call(env) Interceptor.new(@app, env).intercept! end |