Class: RabbitMQSpec::DSL::Builder::Exchange Private

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Behavior inside the "exchange" DSL keyword

Instance Method Summary collapse

Methods inherited from Base

build, #build_entity, #initialize, #method_missing

Constructor Details

This class inherits a constructor from RabbitMQSpec::DSL::Builder::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RabbitMQSpec::DSL::Builder::Base

Instance Method Details

#queue(name, &block) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



9
10
11
12
# File 'lib/rabbitmq-spec/dsl/builder/exchange.rb', line 9

def queue(name, &block)
  @builded_attributes[:queues] ||= []
  @builded_attributes[:queues] << RabbitMQSpec::DSL::Builder::Queue.build(name: name, &block)
end