Class: Honeybadger::Backend::Test Private
- Defined in:
- lib/honeybadger/backend/test.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.
Class Method Summary collapse
-
.check_ins ⇒ Array<Object>
The check in list.
-
.notifications ⇒ Hash
private
The notification list.
Instance Method Summary collapse
- #check_in(id) ⇒ Object private
- #check_ins ⇒ Object private
- #notifications ⇒ Object private
- #notify(feature, payload) ⇒ Object private
Methods inherited from Null
Methods inherited from Base
#event, #initialize, #track_deployment
Constructor Details
This class inherits a constructor from Honeybadger::Backend::Null
Class Method Details
.check_ins ⇒ Array<Object>
The check in list.
23 24 25 |
# File 'lib/honeybadger/backend/test.rb', line 23 def self.check_ins @check_ins ||= [] end |
.notifications ⇒ Hash
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.
The notification list.
12 13 14 |
# File 'lib/honeybadger/backend/test.rb', line 12 def self.notifications @notifications ||= Hash.new {|h,k| h[k] = [] } 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.
40 41 42 43 |
# File 'lib/honeybadger/backend/test.rb', line 40 def check_in(id) check_ins << id super end |
#check_ins ⇒ 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.
31 32 33 |
# File 'lib/honeybadger/backend/test.rb', line 31 def check_ins self.class.check_ins end |
#notifications ⇒ 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.
27 28 29 |
# File 'lib/honeybadger/backend/test.rb', line 27 def notifications self.class.notifications 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.
35 36 37 38 |
# File 'lib/honeybadger/backend/test.rb', line 35 def notify(feature, payload) notifications[feature] << payload super end |