Skip to content

Commit

Permalink
Document how delivery works
Browse files Browse the repository at this point in the history
  • Loading branch information
kattrali committed Aug 11, 2017
1 parent 36592fd commit cdb76ee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/bugsnag/delivery.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
module Bugsnag
module Delivery
class << self
# 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
def register(name, delivery_method)
delivery_methods[name.to_sym] = delivery_method
end

# Reference a delivery method by name
def [](name)
delivery_methods[name.to_sym]
end
Expand Down

0 comments on commit cdb76ee

Please sign in to comment.