Class: BBK::AMQP::RouteInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/bbk/amqp/route_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exchange, routing_key) ⇒ RouteInfo

Returns a new instance of RouteInfo.



7
8
9
10
# File 'lib/bbk/amqp/route_info.rb', line 7

def initialize(exchange, routing_key)
  @exchange = exchange
  @routing_key = routing_key
end

Instance Attribute Details

#exchangeObject (readonly)

Returns the value of attribute exchange.



5
6
7
# File 'lib/bbk/amqp/route_info.rb', line 5

def exchange
  @exchange
end

#routing_keyObject (readonly)

Returns the value of attribute routing_key.



5
6
7
# File 'lib/bbk/amqp/route_info.rb', line 5

def routing_key
  @routing_key
end