You could simplify this by doing:

```
username = opts.fetch(:username) { 'guest' }

RabbitMQ::HTTP::Client.new(
  endpoint,
  username: username,
  password: opts[:password],
  ssl: opts[:ssl]
)
```