Class: Honeybadger::Backend::Base
- Inherits:
-
Object
- Object
- Honeybadger::Backend::Base
- Extended by:
- Forwardable
- Includes:
- Logging::Helper
- Defined in:
- lib/honeybadger/backend/base.rb
Instance Method Summary collapse
-
#initialize(config) ⇒ Base
constructor
A new instance of Base.
-
#notify(feature, payload) ⇒ Object
Internal: Process payload for feature.
Constructor Details
#initialize(config) ⇒ Base
Returns a new instance of Base.
42 43 44 |
# File 'lib/honeybadger/backend/base.rb', line 42 def initialize(config) @config = config end |
Instance Method Details
#notify(feature, payload) ⇒ Object
Internal: Process payload for feature.
feature - A Symbol feature name (corresponds to HTTP endpoint). Current
are: :notices, :metrics, :traces.
payload - Any Object responding to #to_json.
Examples:
backend.notify(:notices, Notice.new(...))
Raises NotImplementedError
57 58 59 |
# File 'lib/honeybadger/backend/base.rb', line 57 def notify(feature, payload) raise NotImplementedError, 'must define #notify on subclass.' end |