Class: SidekiqWebGoogleAuth::Builder

Inherits:
Rack::Builder
  • Object
show all
Defined in:
lib/sidekiq_web_google_auth/builder.rb

Instance Method Summary collapse

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