class Honeybadger::Backend::Test
Public Class Methods
Source
# File lib/honeybadger/backend/test.rb, line 33 def self.check_ins @check_ins ||= [] end
@api public The check in list.
@example Test.check_ins
# => [“foobar”, “danny”, …]
@return [Array<Object>] List of check ins.
Source
# File lib/honeybadger/backend/test.rb, line 22 def self.events @events ||= [] end
The event list.
@example Test.events
# => [{}, {}, …]
@return [Array<Hash>] List of event payloads.
Source
# File lib/honeybadger/backend/test.rb, line 12 def self.notifications @notifications ||= Hash.new {|h,k| h[k] = [] } end
The notification list.
@example Test.notifications[:notices]
# => [Notice, Notice
, …]
@return [Hash] Notifications hash.
Public Instance Methods
Source
# File lib/honeybadger/backend/test.rb, line 59 def check_in(id) check_ins << id super end
Calls superclass method
Honeybadger::Backend::Null#check_in
Source
# File lib/honeybadger/backend/test.rb, line 41 def check_ins self.class.check_ins end
Source
# File lib/honeybadger/backend/test.rb, line 54 def event(payload) events.concat(payload.dup) super end
Calls superclass method
Honeybadger::Backend::Null#event
Source
# File lib/honeybadger/backend/test.rb, line 37 def notifications self.class.notifications end
Source
# File lib/honeybadger/backend/test.rb, line 49 def notify(feature, payload) notifications[feature] << payload super end
Calls superclass method
Honeybadger::Backend::Null#notify