Class: Conjoin::AuthToken::Middleware

Inherits:
Object
  • Object
show all
Defined in:
lib/conjoin/auth_token.rb

Defined Under Namespace

Classes: Responder

Instance Method Summary collapse

Constructor Details

#initialize(app, settings = {}) ⇒ Middleware

Returns a new instance of Middleware.



28
29
30
31
# File 'lib/conjoin/auth_token.rb', line 28

def initialize(app, settings = {})
  @app = app
  AuthToken.settings = OpenStruct.new settings
end

Instance Method Details

#call(env) ⇒ Object



33
34
35
36
# File 'lib/conjoin/auth_token.rb', line 33

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