Class: Honeybadger::Backend::Test

Inherits:
Null
  • Object
show all
Defined in:
lib/honeybadger/backend/test.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Null

#initialize

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Honeybadger::Backend::Null

Class Method Details

.notificationsObject

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

#notificationsObject

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