Class: Dor::Event::Client::RabbitChannelFactory

Inherits:
Object
  • Object
show all
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

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