Class: Sydecar::Connection
- Inherits:
-
BaseConnection
- Object
- BaseConnection
- Sydecar::Connection
- Defined in:
- lib/sydecar/connection.rb
Class Method Summary collapse
Methods inherited from BaseConnection
Class Method Details
.headers ⇒ Object
4 5 6 |
# File 'lib/sydecar/connection.rb', line 4 def headers common_headers.merge('Content-Type' => 'application/json') end |
.instance ⇒ Object
8 9 10 11 12 13 |
# File 'lib/sydecar/connection.rb', line 8 def instance super return @@instance if @@instance @@instance = create_instance(headers, base_url, env, format_of_request: :json) end |