Class: Dor::Services::Client::ConnectionWrapper
- Inherits:
-
Object
- Object
- Dor::Services::Client::ConnectionWrapper
- Defined in:
- lib/dor/services/client/connection_wrapper.rb
Overview
Wraps connections to allow GET requests to be retriable.
Instance Method Summary collapse
-
#initialize(connection:, get_connection:) ⇒ ConnectionWrapper
constructor
A new instance of ConnectionWrapper.
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 |