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.
-
.events ⇒ Array<Hash>
private
The event list.
-
.notifications ⇒ Hash
private
The notification list.
Instance Method Summary collapse
- #check_in(id) ⇒ Object private
- #check_ins ⇒ Object private
- #event(payload) ⇒ Object private
- #notifications ⇒ Object private
- #notify(feature, payload) ⇒ Object private
Methods inherited from Null
Methods inherited from Base
#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.
33 34 35 |
# File 'lib/honeybadger/backend/test.rb', line 33 def self.check_ins @check_ins ||= [] end |
.events ⇒ Array<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 event list.
22 23 24 |
# File 'lib/honeybadger/backend/test.rb', line 22 def self.events @events ||= [] 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.
55 56 57 58 |
# File 'lib/honeybadger/backend/test.rb', line 55 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.
41 42 43 |
# File 'lib/honeybadger/backend/test.rb', line 41 def check_ins self.class.check_ins 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.
50 51 52 53 |
# File 'lib/honeybadger/backend/test.rb', line 50 def event(payload) events << payload super 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.
37 38 39 |
# File 'lib/honeybadger/backend/test.rb', line 37 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.
45 46 47 48 |
# File 'lib/honeybadger/backend/test.rb', line 45 def notify(feature, payload) notifications[feature] << payload super end |