Class: EventStoreClient::StoreAdapter::Api::Connection
- Inherits:
-
Object
- Object
- EventStoreClient::StoreAdapter::Api::Connection
- Defined in:
- lib/event_store_client/store_adapter/api/connection.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/event_store_client/store_adapter/api/connection.rb', line 9 def call Faraday.new( { url: uri.to_s, headers: DEFAULT_HEADERS }.merge() ) do |conn| conn.basic_auth(config.eventstore_user, config.eventstore_password) conn.adapter Faraday.default_adapter end end |