Class: Dor::Event::Client::RabbitChannelFactory
- Inherits:
-
Object
- Object
- Dor::Event::Client::RabbitChannelFactory
- Defined in:
- lib/dor/event/client/rabbit_channel_factory.rb
Overview
Factory for creating Rabbit channel. Note that that channel is lazily created.
Instance Method Summary collapse
-
#initialize(hostname:, vhost:, username:, password:) ⇒ RabbitChannelFactory
constructor
A new instance of RabbitChannelFactory.
Constructor Details
#initialize(hostname:, vhost:, username:, password:) ⇒ RabbitChannelFactory
Returns a new instance of RabbitChannelFactory.
9 10 11 12 13 14 |
# File 'lib/dor/event/client/rabbit_channel_factory.rb', line 9 def initialize(hostname:, vhost:, username:, password:) @hostname = hostname @vhost = vhost @username = username @password = password end |