Class: Honeybadger::Backend::Test
- Defined in:
- lib/honeybadger/backend/test.rb
Class Method Summary collapse
-
.notifications ⇒ Object
Public: The notification list.
Instance Method Summary collapse
-
#notifications ⇒ Object
Internal: Local helper.
- #notify(feature, payload) ⇒ Object
Methods inherited from Null
Methods inherited from Base
Constructor Details
This class inherits a constructor from Honeybadger::Backend::Null
Class Method Details
.notifications ⇒ Object
Public: The notification list.
Examples:
Test.notifications[:notices] # => [Notice, Notice, ...]
Returns the Hash notifications.
13 14 15 |
# File 'lib/honeybadger/backend/test.rb', line 13 def self.notifications @notifications ||= Hash.new {|h,k| h[k] = [] } end |
Instance Method Details
#notifications ⇒ Object
Internal: Local helper.
18 19 20 |
# File 'lib/honeybadger/backend/test.rb', line 18 def notifications self.class.notifications end |
#notify(feature, payload) ⇒ Object
22 23 24 25 |
# File 'lib/honeybadger/backend/test.rb', line 22 def notify(feature, payload) notifications[feature] << payload super end |