code: function(options) {
      
      // Call super class.
      EventEmitter.call(this);
      
      // Set options and load defaults if needed.
      this.options = options || {};
      
      this.host = this.options.host || 'localhost';
      this.port = this.options.port || 5672;
      this.protocol = this.options.protocol || 'amqp';
      this.login = this.options.login;
      this.password = this.options.password;
      this.vhost = this.options.vhost;
      this.task = this.options.task;
  
      this.url = this.protocol + '://';
      if (this.login && this.password) {
          this.url += this.login + ':' + this.password + '@';
      }
      this.url += this.host;
      if (this.port) {
          this.url += ':' + this.port;
      }
      if (this.vhost) {
          this.url += this.vhost;
      }
  
  }
docs: ## RabbitHub This class represents a hub for RabbitMQ.