Class: Neoway::Auth::Connection
- Inherits:
-
Flash::Integration::Connection
- Object
- Flash::Integration::Connection
- Neoway::Auth::Connection
- Defined in:
- lib/neoway/auth/connection.rb
Direct Known Subclasses
Instance Method Summary collapse
- #default_headers ⇒ Object
-
#initialize(request_class: Faraday) ⇒ Connection
constructor
A new instance of Connection.
Constructor Details
#initialize(request_class: Faraday) ⇒ Connection
Returns a new instance of Connection.
6 7 8 |
# File 'lib/neoway/auth/connection.rb', line 6 def initialize(request_class: Faraday) super(request_class: request_class, base_url: retrieve_base_url) end |
Instance Method Details
#default_headers ⇒ Object
10 11 12 13 14 15 |
# File 'lib/neoway/auth/connection.rb', line 10 def default_headers { "Content-Type": "application/json", "Accept": "application/json" } end |