Sha256: eb5d80e31423cf22db6b3ba56918a26830ba1b8cddd54a2a6d8b527365463005

Contents?: true

Size: 752 Bytes

Versions: 3

Compression:

Stored size: 752 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 NotImplementedError.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

3 entries across 3 versions & 1 rubygems

Version Path
sentry-raven-0.13.1 lib/raven/transports.rb
sentry-raven-0.13.0 lib/raven/transports.rb
sentry-raven-0.12.3 lib/raven/transports.rb