Class: GerritEventRouter::Broker::AMQP::Config

Inherits:
Config::Base show all
Defined in:
lib/ger/broker/amqp.rb

Instance Attribute Summary collapse

Attributes inherited from Config::Base

#mode

Attributes inherited from Config::Base

#name, #uri

Instance Method Summary collapse

Methods inherited from Config::Base

#initiallize

Constructor Details

#initialize(name, uri, mode, exchange) ⇒ Config

Returns a new instance of Config.



8
9
10
11
# File 'lib/ger/broker/amqp.rb', line 8

def initialize(name, uri, mode, exchange)
  super(name, uri, mode)
  @exchange = exchange
end

Instance Attribute Details

#exchangeObject (readonly)

Returns the value of attribute exchange.



17
18
19
# File 'lib/ger/broker/amqp.rb', line 17

def exchange
  @exchange
end

#userObject (readonly)

Returns the value of attribute user.



17
18
19
# File 'lib/ger/broker/amqp.rb', line 17

def user
  @user
end

Instance Method Details

#headerObject



13
14
15
# File 'lib/ger/broker/amqp.rb', line 13

def header
  AMQP::HEADER
end