Module: Honeybadger::Backend

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

Defined Under Namespace

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

Class Method Summary collapse

Class Method Details

.for(backend) ⇒ Object


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

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

.mappingObject


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

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