Module: Bugsnag::Delivery
- Defined in:
- lib/bugsnag/delivery.rb,
lib/bugsnag/delivery/synchronous.rb,
lib/bugsnag/delivery/thread_queue.rb
Defined Under Namespace
Classes: Synchronous, ThreadQueue
Class Method Summary collapse
-
.[](name) ⇒ Object
Reference a delivery method by name.
-
.register(name, delivery_method) ⇒ Object
Add a delivery method to the list of supported methods.
Class Method Details
.[](name) ⇒ Object
Reference a delivery method by name
21 22 23 |
# File 'lib/bugsnag/delivery.rb', line 21 def [](name) delivery_methods[name.to_sym] end |
.register(name, delivery_method) ⇒ Object
Add a delivery method to the list of supported methods. Any registered method can then be used by name in Configuration.
“‘ require ’bugsnag’ Bugsnag::Delivery.register(:my_delivery_queue, MyDeliveryQueue) Bugsnag.configure do |config|
config.delivery_method = :my_delivery_queue
end “‘
15 16 17 |
# File 'lib/bugsnag/delivery.rb', line 15 def register(name, delivery_method) delivery_methods[name.to_sym] = delivery_method end |