Sha256: 5a574c500fa4abf87a7c6d639a9d1801f662407a24e48f1ea0094b460b9da29c

Contents?: true

Size: 673 Bytes

Versions: 6

Compression:

Stored size: 673 Bytes

Contents

# frozen_string_literal: true

module Sentry
  class Transport
    class Configuration
      attr_accessor :timeout, :open_timeout, :proxy, :ssl, :ssl_ca_file, :ssl_verification, :http_adapter, :faraday_builder,
        :encoding
      attr_reader :transport_class

      def initialize
        @ssl_verification = true
        @open_timeout = 1
        @timeout = 2
        @encoding = HTTPTransport::GZIP_ENCODING
      end

      def transport_class=(klass)
        unless klass.is_a?(Class)
          raise Sentry::Error.new("config.transport.transport_class must a class. got: #{klass.class}")
        end

        @transport_class = klass
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sentry-ruby-core-4.9.2 lib/sentry/transport/configuration.rb
sentry-ruby-core-4.9.1 lib/sentry/transport/configuration.rb
sentry-ruby-core-4.9.0 lib/sentry/transport/configuration.rb
sentry-ruby-core-4.8.3 lib/sentry/transport/configuration.rb
sentry-ruby-core-4.8.2 lib/sentry/transport/configuration.rb
sentry-ruby-core-4.8.1 lib/sentry/transport/configuration.rb