Sha256: 3dfa961630616dabf30fd22d74e4002b2f9073735d70d18ac99c803c2654471f

Contents?: true

Size: 740 Bytes

Versions: 12

Compression:

Stored size: 740 Bytes

Contents

require 'raven/error'

module Raven

  module Transports

    class Transport

      attr_accessor :configuration

      def initialize(configuration)
        @configuration = configuration
      end

      def send(auth_header, data, options = {})
        raise Error.new('Abstract method not implemented')
      end

    protected

      def verify_configuration
        raise Error.new('No server specified') unless self.configuration.server
        raise Error.new('No public key specified') unless self.configuration.public_key
        raise Error.new('No secret key specified') unless self.configuration.secret_key
        raise Error.new('No project ID specified') unless self.configuration.project_id
      end

    end

  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
sentry-raven-0.6.1 lib/raven/transports.rb
sentry-raven-0.7.1 lib/raven/transports.rb
sentry-raven-0.6.0 lib/raven/transports.rb
sentry-raven-0.5.0 lib/raven/transports.rb
sentry-raven-0.4.8 lib/raven/transports.rb
sentry-raven-0.4.7 lib/raven/transports.rb
sentry-raven-0.4.6 lib/raven/transports.rb
sentry-raven-0.4.5 lib/raven/transports.rb
sentry-raven-0.4.4 lib/raven/transports.rb
sentry-raven-0.4.3 lib/raven/transports.rb
sentry-raven-0.4.2 lib/raven/transports.rb
sentry-raven-0.4.1 lib/raven/transports.rb