Class: BreezyPDF::Middleware

Inherits:
Object
  • Object
show all
Defined in:
lib/breezy_pdf/middleware.rb

Overview

:nodoc

Instance Method Summary collapse

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, _options = {})
  @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