Class: Honeybadger::Backend::Base Private
- Inherits:
-
Object
- Object
- Honeybadger::Backend::Base
- Extended by:
- Forwardable
- Includes:
- Logging::Helper
- Defined in:
- lib/honeybadger/backend/base.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#check_in(id) ⇒ Object
private
Does a check in using the input id.
-
#event(payload) ⇒ Object
private
Send event.
-
#initialize(config) ⇒ Base
constructor
private
A new instance of Base.
-
#notify(feature, payload) ⇒ Object
private
Process payload for feature.
-
#track_deployment(payload) ⇒ Object
private
Track a deployment.
Constructor Details
#initialize(config) ⇒ Base
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.
Returns a new instance of Base.
76 77 78 |
# File 'lib/honeybadger/backend/base.rb', line 76 def initialize(config) @config = config end |
Instance Method Details
#check_in(id) ⇒ 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.
Does a check in using the input id.
99 100 101 |
# File 'lib/honeybadger/backend/base.rb', line 99 def check_in(id) raise NotImplementedError, 'must define #check_in on subclass.' end |
#event(payload) ⇒ 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.
Send event
118 119 120 |
# File 'lib/honeybadger/backend/base.rb', line 118 def event(payload) raise NotImplementedError, "must define #event on subclass" end |
#notify(feature, payload) ⇒ 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.
Process payload for feature.
90 91 92 |
# File 'lib/honeybadger/backend/base.rb', line 90 def notify(feature, payload) raise NotImplementedError, 'must define #notify on subclass.' end |
#track_deployment(payload) ⇒ 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.
Track a deployment
108 109 110 |
# File 'lib/honeybadger/backend/base.rb', line 108 def track_deployment(payload) notify(:deploys, payload) end |