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-7.0.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-6.36.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-6.35.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-6.34.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-6.33.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-6.32.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-6.31.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-6.30.1 lib/dor/services/client/connection_wrapper.rb
dor-services-client-6.30.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-6.29.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-6.28.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-6.27.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-6.26.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-6.26.0.beta.1 lib/dor/services/client/connection_wrapper.rb
dor-services-client-6.25.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-6.24.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-6.23.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-6.22.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-6.21.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-6.20.0 lib/dor/services/client/connection_wrapper.rb