Sha256: 105382f804854a8d5f17ffcdfc20085d6a174b9d582c0c66e76d81fd86ee0c0a

Contents?: true

Size: 431 Bytes

Versions: 5

Compression:

Stored size: 431 Bytes

Contents

module UniformNotifier
  class AirbrakeNotifier < Base
    def self.active?
      !!UniformNotifier.airbrake
    end

    protected

    def self._out_of_channel_notify(data)
      message = data.values.compact.join("\n")

      opt = {}
      if UniformNotifier.airbrake.is_a?(Hash)
        opt = UniformNotifier.airbrake
      end

      exception = Exception.new(message)
      Airbrake.notify(exception, opt)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
uniform_notifier-1.8.0 lib/uniform_notifier/airbrake.rb
uniform_notifier-1.7.0 lib/uniform_notifier/airbrake.rb
uniform_notifier-1.6.2 lib/uniform_notifier/airbrake.rb
uniform_notifier-1.6.1 lib/uniform_notifier/airbrake.rb
uniform_notifier-1.6.0 lib/uniform_notifier/airbrake.rb