Sha256: 4951f9f854e1986780aed79f4245342e7bd4ddeb3c58922c0f8f9805101e4f02

Contents?: true

Size: 280 Bytes

Versions: 6

Compression:

Stored size: 280 Bytes

Contents

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

    def self.out_of_channel_notify(message)
      return unless active?
      exception = Exception.new(message)
      Airbrake.notify(exception)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
uniform_notifier-1.5.0 lib/uniform_notifier/airbrake.rb
uniform_notifier-1.4.0 lib/uniform_notifier/airbrake.rb
uniform_notifier-1.3.0 lib/uniform_notifier/airbrake.rb
uniform_notifier-1.2.0 lib/uniform_notifier/airbrake.rb
uniform_notifier-1.1.1 lib/uniform_notifier/airbrake.rb
uniform_notifier-1.1.0 lib/uniform_notifier/airbrake.rb