Sha256: f49e5b1d7937c0f8b59fcb06bbe0764933902586a778d4364e363782c3a091b7

Contents?: true

Size: 737 Bytes

Versions: 13

Compression:

Stored size: 737 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

13 entries across 13 versions & 2 rubygems

Version Path
sentry-raven-0.12.2 lib/raven/transports.rb
sentry-raven-0.12.1 lib/raven/transports.rb
sentry-raven-0.12.0 lib/raven/transports.rb
mustwin-sentry-raven-0.11.2 lib/raven/transports.rb
sentry-raven-0.11.2 lib/raven/transports.rb
sentry-raven-0.11.1 lib/raven/transports.rb
sentry-raven-0.10.1 lib/raven/transports.rb
sentry-raven-0.9.4 lib/raven/transports.rb
sentry-raven-0.9.3 lib/raven/transports.rb
sentry-raven-0.9.2 lib/raven/transports.rb
sentry-raven-0.9.1 lib/raven/transports.rb
sentry-raven-0.9.0 lib/raven/transports.rb
sentry-raven-0.8.0 lib/raven/transports.rb