Class: BRL::Auth::Connection
- Inherits:
-
Flash::Integration::Connection
- Object
- Flash::Integration::Connection
- BRL::Auth::Connection
- Defined in:
- lib/brl/auth/connection.rb
Direct Known Subclasses
Constant Summary collapse
- ACCEPT =
"application/json"
- CONTENT_TYPE =
"application/x-www-form-urlencoded"
Instance Method Summary collapse
- #default_headers ⇒ Object
-
#initialize(request_class: Faraday, base_url: BRL.configuration.auth_base_url) ⇒ Connection
constructor
A new instance of Connection.
Constructor Details
#initialize(request_class: Faraday, base_url: BRL.configuration.auth_base_url) ⇒ Connection
Returns a new instance of Connection.
9 10 11 |
# File 'lib/brl/auth/connection.rb', line 9 def initialize(request_class: Faraday, base_url: BRL.configuration.auth_base_url) super(request_class: request_class, base_url: base_url) end |
Instance Method Details
#default_headers ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/brl/auth/connection.rb', line 13 def default_headers { "Accept": "application/json", "Authorization": , "Content-Type": CONTENT_TYPE } end |