Class: BBK::AMQP::Domains::Exchange
- Inherits:
-
Object
- Object
- BBK::AMQP::Domains::Exchange
- Defined in:
- lib/bbk/amqp/domains/exchange.rb
Instance Attribute Summary collapse
-
#exchange ⇒ Object
readonly
Returns the value of attribute exchange.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #call(route) ⇒ Object
-
#initialize(name, exchange) ⇒ Exchange
constructor
A new instance of Exchange.
Constructor Details
#initialize(name, exchange) ⇒ Exchange
Returns a new instance of Exchange.
9 10 11 12 |
# File 'lib/bbk/amqp/domains/exchange.rb', line 9 def initialize(name, exchange) @name = name @exchange = exchange end |
Instance Attribute Details
#exchange ⇒ Object (readonly)
Returns the value of attribute exchange.
7 8 9 |
# File 'lib/bbk/amqp/domains/exchange.rb', line 7 def exchange @exchange end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/bbk/amqp/domains/exchange.rb', line 7 def name @name end |