Class: FidorApi::Client::Connection
- Inherits:
-
Object
- Object
- FidorApi::Client::Connection
- Defined in:
- lib/fidor_api/client/connection.rb
Constant Summary collapse
- DEFAULT_HEADERS =
{ 'Accept' => 'application/vnd.fidor.de; version=1,text/json', 'Content-Type' => 'application/json' }.freeze
Instance Method Summary collapse
-
#initialize(client:, host:) ⇒ Connection
constructor
A new instance of Connection.
Constructor Details
#initialize(client:, host:) ⇒ Connection
Returns a new instance of Connection.
9 10 11 12 |
# File 'lib/fidor_api/client/connection.rb', line 9 def initialize(client:, host:) @client = client @host = host end |