Class: Neoway::Auth::Connection

Inherits:
Flash::Integration::Connection
  • Object
show all
Defined in:
lib/neoway/auth/connection.rb

Direct Known Subclasses

AuthenticatedConnection

Instance Method Summary collapse

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_headersObject



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