Method: Optimizely::NotificationCenter#initialize

Defined in:
lib/optimizely/notification_center.rb

#initialize(logger, error_handler) ⇒ NotificationCenter

Returns a new instance of NotificationCenter.



32
33
34
35
36
37
38
# File 'lib/optimizely/notification_center.rb', line 32

def initialize(logger, error_handler)
  @notification_id = 1
  @notifications = {}
  NOTIFICATION_TYPES.each_value { |value| @notifications[value] = [] }
  @logger = logger
  @error_handler = error_handler
end