Class: Bunnicula::Exchange

Inherits:
Object show all
Defined in:
lib/bunnicula/exchange.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exchange_name = nil, options = {}) ⇒ Exchange

Returns a new instance of Exchange.



5
6
7
8
9
10
11
# File 'lib/bunnicula/exchange.rb', line 5

def initialize(exchange_name=nil,options={})
  @name = exchange_name
  @type = options.delete(:type) || options.delete(:exchange_type)
  @durable = options.delete(:durable)
  @ack = options.delete(:ack)
  @routing_key = options.delete(:routing_key)
end

Instance Attribute Details

#ackObject (readonly)

Returns the value of attribute ack.



3
4
5
# File 'lib/bunnicula/exchange.rb', line 3

def ack
  @ack
end

#durableObject (readonly)

Returns the value of attribute durable.



3
4
5
# File 'lib/bunnicula/exchange.rb', line 3

def durable
  @durable
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/bunnicula/exchange.rb', line 3

def name
  @name
end

#routing_keyObject (readonly)

Returns the value of attribute routing_key.



3
4
5
# File 'lib/bunnicula/exchange.rb', line 3

def routing_key
  @routing_key
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/bunnicula/exchange.rb', line 3

def type
  @type
end