Class: BBK::AMQP::RouteInfo
- Inherits:
-
Object
- Object
- BBK::AMQP::RouteInfo
- Defined in:
- lib/bbk/amqp/route_info.rb
Instance Attribute Summary collapse
-
#exchange ⇒ Object
readonly
Returns the value of attribute exchange.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#routing_key ⇒ Object
readonly
Returns the value of attribute routing_key.
Instance Method Summary collapse
-
#initialize(exchange, routing_key, **headers_params) ⇒ RouteInfo
constructor
A new instance of RouteInfo.
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
#exchange ⇒ Object (readonly)
Returns the value of attribute exchange.
5 6 7 |
# File 'lib/bbk/amqp/route_info.rb', line 5 def exchange @exchange end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
5 6 7 |
# File 'lib/bbk/amqp/route_info.rb', line 5 def headers @headers end |
#routing_key ⇒ Object (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 |