class Redmine::Client::AuthorizationToken

Constants

AUTH_HEADER

Private Class Methods

new(app, token) click to toggle source
Calls superclass method
# File lib/redmine/client/authorization_token.rb, line 6
def initialize(app, token)
  @access_token = token
  super(app)
end

Private Instance Methods

call(env) click to toggle source
# File lib/redmine/client/authorization_token.rb, line 11
def call(env)
  env.request_headers[AUTH_HEADER] = @access_token

  @app.call(env)
end