class Faraday::Request::TinderbOauth2
Public Class Methods
new(app, token)
click to toggle source
# File lib/tinderb/request.rb, line 9 def initialize(app, token) @app = app @token = token end
Public Instance Methods
call(env)
click to toggle source
# File lib/tinderb/request.rb, line 14 def call(env) env[:request_headers]['X-Auth-Token'] ||= @token @app.call(env) end