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

16 lines
336 B
Ruby
Raw Normal View History

2014-09-03 08:49:59 +00:00
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