Module: Honeybadger::Backend Private

Defined in:
lib/honeybadger/backend.rb,
lib/honeybadger/backend/base.rb,
lib/honeybadger/backend/null.rb,
lib/honeybadger/backend/test.rb,
lib/honeybadger/backend/debug.rb,
lib/honeybadger/backend/server.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Defined Under Namespace

Classes: BackendError, Base, Debug, Null, Response, Server, Test

Class Method Summary collapse

Class Method Details

.for(backend) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



23
24
25
# File 'lib/honeybadger/backend.rb', line 23

def self.for(backend)
  mapping[backend] or raise(BackendError, "Unable to locate backend: #{backend}")
end

.mappingObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



14
15
16
17
18
19
20
21
# File 'lib/honeybadger/backend.rb', line 14

def self.mapping
  @@mapping ||= {
    server: Server,
    test: Test,
    null: Null,
    debug: Debug
  }.freeze
end