Class: ExvoAuth::Dejavu

Inherits:
Object
  • Object
show all
Defined in:
lib/exvo_auth/dejavu.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Dejavu

Returns a new instance of Dejavu.



2
3
4
# File 'lib/exvo_auth/dejavu.rb', line 2

def initialize(app)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



6
7
8
9
# File 'lib/exvo_auth/dejavu.rb', line 6

def call(env)
  dejavu(env) if Rack::Request.new(env).path == "/auth/dejavu"
  @app.call(env)
end