class Rack::OAuth2::Server::Abstract::Handler

Attributes

authenticator[RW]
request[RW]
response[RW]

Public Class Methods

new(&authenticator) click to toggle source
# File lib/rack/oauth2/server/abstract/handler.rb, line 8
def initialize(&authenticator)
  @authenticator = authenticator
end

Public Instance Methods

call(env) click to toggle source
# File lib/rack/oauth2/server/abstract/handler.rb, line 12
def call(env)
  @authenticator.call(@request, @response) if @authenticator
  @response
end