Sha256: 39302d33784f27d87685bb171ba999361981d56951e36a702c3b46786047b95e

Contents?: true

Size: 517 Bytes

Versions: 103

Compression:

Stored size: 517 Bytes

Contents

# frozen_string_literal: true

module Dor
  module Services
    class Client
      # Wraps connections to allow GET requests to be retriable.
      class ConnectionWrapper
        delegate :get, to: :get_connection
        delegate :post, :delete, :put, :patch, to: :connection

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

        private

        attr_reader :connection, :get_connection
      end
    end
  end
end

Version data entries

103 entries across 103 versions & 1 rubygems

Version Path
dor-services-client-12.7.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.6.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.5.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.4.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.3.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.2.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.1.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.0.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-11.0.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-10.2.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-10.1.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-10.0.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-9.1.1 lib/dor/services/client/connection_wrapper.rb
dor-services-client-9.1.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-9.0.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-8.9.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-8.8.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-8.7.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-8.6.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-8.5.0 lib/dor/services/client/connection_wrapper.rb