Class: ActivePubsub::Config
- Inherits:
-
ActiveSupport::InheritableOptions
- Object
- ActiveSupport::InheritableOptions
- ActivePubsub::Config
- 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
-
#initialize(*args) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(*args) ⇒ Config
7 8 9 10 11 12 13 14 15 16 17 |
# 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 self[:logger] ||= ::ActivePubsub::Logging.logger self[:durable] ||= false self[:ack] ||= false self[:publisher_disabled] ||= false end |