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-13.3.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-13.2.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-13.1.1 lib/dor/services/client/connection_wrapper.rb
dor-services-client-13.1.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-13.0.1 lib/dor/services/client/connection_wrapper.rb
dor-services-client-13.0.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.18.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.17.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.16.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.15.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.14.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.13.1 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.13.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.12.1 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.12.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.11.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.10.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.9.1 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.9.0 lib/dor/services/client/connection_wrapper.rb
dor-services-client-12.8.0 lib/dor/services/client/connection_wrapper.rb