Class: SidekiqWebGoogleAuth::Builder
- Inherits:
-
Rack::Builder
- Object
- Rack::Builder
- SidekiqWebGoogleAuth::Builder
- Defined in:
- lib/sidekiq_web_google_auth/builder.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(app) ⇒ Builder
7 8 9 10 |
# File 'lib/sidekiq_web_google_auth/builder.rb', line 7 def initialize(app, **, &) @app = app super end |
Instance Method Details
#call(env) ⇒ Object
12 13 14 |
# File 'lib/sidekiq_web_google_auth/builder.rb', line 12 def call(env) accept?(env) ? admit(env) : deny(env) end |