Class: Redirector::Middleware

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

Defined Under Namespace

Classes: Responder

Instance Method Summary collapse

Constructor Details

#initialize(application) ⇒ Middleware

Returns a new instance of Middleware.



5
6
7
# File 'lib/redirector/middleware.rb', line 5

def initialize(application)
  @application = application
end

Instance Method Details

#call(environment) ⇒ Object



9
10
11
# File 'lib/redirector/middleware.rb', line 9

def call(environment)
  Responder.new(@application, environment).response
end