Sha256: b7a785f4a1cf019e3b18c1931cfa907b2e7db6f3ca1b05c5f8e2dbc37d0fec0b

Contents?: true

Size: 458 Bytes

Versions: 43

Compression:

Stored size: 458 Bytes

Contents

module Datadog
  module Transport
    module HTTP
      module API
        # Extension for Map with adds fallback versions.
        module Fallbacks
          def fallbacks
            @fallbacks ||= {}
          end

          def with_fallbacks(fallbacks)
            tap { add_fallbacks!(fallbacks) }
          end

          def add_fallbacks!(fallbacks)
            self.fallbacks.merge!(fallbacks)
          end
        end
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
ddtrace-1.10.1 lib/ddtrace/transport/http/api/fallbacks.rb
ddtrace-1.10.0 lib/ddtrace/transport/http/api/fallbacks.rb
ddtrace-0.51.1 lib/ddtrace/transport/http/api/fallbacks.rb
ddtrace-0.51.0 lib/ddtrace/transport/http/api/fallbacks.rb
ddtrace-0.50.0 lib/ddtrace/transport/http/api/fallbacks.rb
ddtrace-0.49.0 lib/ddtrace/transport/http/api/fallbacks.rb
ddtrace-0.48.0 lib/ddtrace/transport/http/api/fallbacks.rb
ddtrace-0.47.0 lib/ddtrace/transport/http/api/fallbacks.rb
ddtrace-0.46.0 lib/ddtrace/transport/http/api/fallbacks.rb
ddtrace-0.45.0 lib/ddtrace/transport/http/api/fallbacks.rb
ddtrace-0.44.0 lib/ddtrace/transport/http/api/fallbacks.rb
ddtrace-0.43.0 lib/ddtrace/transport/http/api/fallbacks.rb
ddtrace-0.42.0 lib/ddtrace/transport/http/api/fallbacks.rb
ddtrace-0.41.0 lib/ddtrace/transport/http/api/fallbacks.rb
ls-trace-0.2.0 lib/ddtrace/transport/http/api/fallbacks.rb
ddtrace-0.40.0 lib/ddtrace/transport/http/api/fallbacks.rb
ddtrace-0.39.0 lib/ddtrace/transport/http/api/fallbacks.rb
ddtrace-0.38.0 lib/ddtrace/transport/http/api/fallbacks.rb
ddtrace-0.37.0 lib/ddtrace/transport/http/api/fallbacks.rb
ddtrace-0.36.0 lib/ddtrace/transport/http/api/fallbacks.rb