Class: RabbitMQSpec::Entity::Exchange
- Inherits:
-
Object
- Object
- RabbitMQSpec::Entity::Exchange
- Defined in:
- lib/rabbitmq-spec/entity/exchange.rb
Overview
Represents an exchange in the AMPQ broker
Instance Attribute Summary collapse
-
#description ⇒ String
The current value of description.
-
#name ⇒ String
The current value of name.
-
#options ⇒ Hash
Configuration options.
-
#queues ⇒ Array<RabbitMQSpec::Entity::Queue>
The current value of queues.
Instance Method Summary collapse
-
#initialize ⇒ Exchange
constructor
A new instance of Exchange.
Constructor Details
#initialize ⇒ Exchange
Returns a new instance of Exchange.
13 14 15 16 |
# File 'lib/rabbitmq-spec/entity/exchange.rb', line 13 def initialize @queues = [] @options = {} end |
Instance Attribute Details
#description ⇒ String
Returns the current value of description.
7 8 9 |
# File 'lib/rabbitmq-spec/entity/exchange.rb', line 7 def description @description end |
#name ⇒ String
Returns the current value of name.
7 8 9 |
# File 'lib/rabbitmq-spec/entity/exchange.rb', line 7 def name @name end |
#options ⇒ Hash
Configuration options
7 8 9 |
# File 'lib/rabbitmq-spec/entity/exchange.rb', line 7 def @options end |
#queues ⇒ Array<RabbitMQSpec::Entity::Queue>
Returns the current value of queues.
7 8 9 |
# File 'lib/rabbitmq-spec/entity/exchange.rb', line 7 def queues @queues end |