Class: Dor::Services::Client::ConnectionWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/dor/services/client/connection_wrapper.rb

Overview

Wraps connections to allow GET requests to be retriable.

Instance Method Summary collapse

Constructor Details

#initialize(connection:, get_connection:) ⇒ ConnectionWrapper

Returns a new instance of ConnectionWrapper.



11
12
13
14
# File 'lib/dor/services/client/connection_wrapper.rb', line 11

def initialize(connection:, get_connection:)
  @connection = connection
  @get_connection = get_connection
end