Sha256: 83742443e5ea521066170de4cf19334a91e468f810a6a1def0d840f27baa42c7
Contents?: true
Size: 553 Bytes
Versions: 5
Compression:
Stored size: 553 Bytes
Contents
require 'honeybadger/backend/null' module Honeybadger module Backend class Test < Null # Public: The notification list. # # Examples: # # backend.notifications[:notices] # => [Notice, Notice, ...] # # Returns the Hash notifications. def notifications @notifications ||= Hash.new([]) end def notify(feature, payload) notifications[feature] = [] unless notifications.include?(feature) notifications[feature] << payload super end end end end
Version data entries
5 entries across 5 versions & 1 rubygems