Class: Cuba::Tools::Auth::Middleware

Inherits:
Object
  • Object
show all
Defined in:
lib/cuba/tools/auth.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Middleware

Returns a new instance of Middleware.



23
24
25
# File 'lib/cuba/tools/auth.rb', line 23

def initialize(app)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



27
28
29
30
# File 'lib/cuba/tools/auth.rb', line 27

def call(env)
  responder = Responder.new(@app, env)
  responder.respond
end