Class: Request::TokenAuthentication

Inherits:
Object
  • Object
show all
Defined in:
lib/openstf/faraday/ext.rb

Class Method Summary collapse

Class Method Details

.header(token, options = nil) ⇒ Object



5
6
7
8
9
# File 'lib/openstf/faraday/ext.rb', line 5

def self.header(token, options = nil)
  options ||= {}
  options[:token] = token
  super(:Bearer, token)
end