Class: Rack::MultiTenant::GetIdentity
- Inherits:
-
Object
- Object
- Rack::MultiTenant::GetIdentity
- Defined in:
- lib/rack/multitenant/get_identity.rb
Defined Under Namespace
Classes: Next
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, user_key = "REMOTE_USER", &getter) ⇒ GetIdentity
constructor
A new instance of GetIdentity.
Constructor Details
#initialize(app, user_key = "REMOTE_USER", &getter) ⇒ GetIdentity
Returns a new instance of GetIdentity.
3 4 5 |
# File 'lib/rack/multitenant/get_identity.rb', line 3 def initialize(app, user_key = "REMOTE_USER", &getter) @app, @user_key, @getter = app, user_key, getter end |