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.



38
39
40
41
# File 'lib/conjoin/auth_token.rb', line 38

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

Instance Method Details

#call(env) ⇒ Object



43
44
45
46
# File 'lib/conjoin/auth_token.rb', line 43

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