Repository URL to install this package:
|
Version:
1.3.3 ▾
|
require_relative '../authenticator.rb'
class TokenAuthenticator < Authenticator
attr_reader :token
def initialize(account_url, token)
@token = token
super account_url
end
def headers
{ Authorization: "Bearer #{@token}" }
end
end