lib/rabbitmq/channel.rb
def queue_declare(name, **opts)
      send_request :queue_declare, {
        queue:       name,
        passive:     opts.fetch(:passive,     false),
        durable:     opts.fetch(:durable,     false),
        exclusive:   opts.fetch(:exclusive,   false),
        auto_delete: opts.fetch(:auto_delete, false),
        arguments:   opts.fetch(:arguments,   {})
      }
      fetch_response :queue_declare_ok
    end
def queue_declare(name, **opts)
      send_request :queue_declare, {
        queue:       name,
        passive:     opts.fetch(:passive,     false),
        durable:     opts.fetch(:durable,     false),
        exclusive:   opts.fetch(:exclusive,   false),
        auto_delete: opts.fetch(:auto_delete, false),
        arguments:   opts.fetch(:arguments,   {})
      }
      fetch_response :queue_declare_ok
    end
Queue operations