Class: ActivePubsub::Config

Inherits:
ActiveSupport::InheritableOptions
  • Object
show all
Defined in:
lib/active_pubsub/config.rb

Overview

IMPORTANT ### Set service namespace if your subscriber has namespace set or it wont get events“

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Config

Returns a new instance of Config.



7
8
9
10
11
12
13
# File 'lib/active_pubsub/config.rb', line 7

def initialize(*args)
  super(*args)

  self[:address] ||= ENV['RABBITMQ_URL']
  self[:publish_as] ||= nil
  self[:service_namespace] ||= nil
end