class Ripcord::Authentication::HTTPTokenAuth
Public Class Methods
new(token)
click to toggle source
# File lib/ripcord/authentication/http_token_auth.rb, line 6 def initialize(token) @token = token end
Public Instance Methods
apply_to(request, _payload_hash)
click to toggle source
# File lib/ripcord/authentication/http_token_auth.rb, line 10 def apply_to(request, _payload_hash) request.add_field "Authorization", "Token token=#{@token}" end