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, **headers_params) ⇒ RouteInfo

Returns a new instance of RouteInfo.



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

def initialize(exchange, routing_key, **headers_params)
  @exchange = exchange
  @routing_key = routing_key
  @headers = headers_params
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

#headersObject (readonly)

Returns the value of attribute headers.



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

def headers
  @headers
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