Class: RabbitMQSpec::Entity::Exchange

Inherits:
Object
  • Object
show all
Defined in:
lib/rabbitmq-spec/entity/exchange.rb

Overview

Represents an exchange in the AMPQ broker

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeExchange

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

#descriptionString

Returns the current value of description.

Returns:

  • (String)

    the current value of description



7
8
9
# File 'lib/rabbitmq-spec/entity/exchange.rb', line 7

def description
  @description
end

#nameString

Returns the current value of name.

Returns:

  • (String)

    the current value of name



7
8
9
# File 'lib/rabbitmq-spec/entity/exchange.rb', line 7

def name
  @name
end

#optionsHash

Configuration options

Returns:

  • (Hash)

    the current value of options



7
8
9
# File 'lib/rabbitmq-spec/entity/exchange.rb', line 7

def options
  @options
end

#queuesArray<RabbitMQSpec::Entity::Queue>

Returns the current value of queues.

Returns:



7
8
9
# File 'lib/rabbitmq-spec/entity/exchange.rb', line 7

def queues
  @queues
end