twitter-status-bot/.gems/gems/faraday-0.9.0/lib/faraday/request/token_authentication.rb

16 lines
336 B
Ruby

module Faraday
class Request::TokenAuthentication < Request.load_middleware(:authorization)
# Public
def self.header(token, options = nil)
options ||= {}
options[:token] = token
super(:Token, options)
end
def initialize(app, token, options = nil)
super(app, token, options)
end
end
end