Class: Honeybadger::Backend::Test Private

Inherits:
Null
  • Object
show all
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

Instance Method Summary collapse

Methods inherited from Null

#event, #initialize

Methods inherited from Base

#event, #initialize, #track_deployment

Constructor Details

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

Class Method Details

.check_insArray<Object>

The check in list.

Examples:

Test.check_ins # => ["foobar", "danny", ...]

Returns:

  • (Array<Object>)

    List of check ins.



23
24
25
# File 'lib/honeybadger/backend/test.rb', line 23

def self.check_ins
  @check_ins ||= []
end

.notificationsHash

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.

Examples:

Test.notifications[:notices] # => [Notice, Notice, ...]

Returns:

  • (Hash)

    Notifications hash.



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_insObject

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

#notificationsObject

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