Class: Conjoin::AuthToken::Middleware
- Inherits:
-
Object
- Object
- Conjoin::AuthToken::Middleware
- Defined in:
- lib/conjoin/auth_token.rb
Defined Under Namespace
Classes: Responder
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, settings = {}) ⇒ Middleware
constructor
A new instance of Middleware.
Constructor Details
#initialize(app, settings = {}) ⇒ 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 |