def connection_opts
      {
        :host => host, 
        :port => port,
        :vhost => vhost, 
        :user => user, 
        :password => password, 
        :pass => password,
        :heartbeat => heartbeat
      }.delete_if{|k,v| v.nil?}
    end
def connection_opts
      {
        :host => host, 
        :port => port,
        :vhost => vhost, 
        :user => user, 
        :password => password, 
        :pass => password,
        :heartbeat => heartbeat
      }.delete_if{|k,v| v.nil?}
    end
Public: Defines the connection options for RabbitMQ as a Hash.

 Examples

   connection_options
   # => {:host=>"localhost", :vhost=>"baton", :user=>"baton", :password=>"password"}

 Returns a hash of RabbitMQ connection options.