Class: Rabbithole::Connection::Settings

Inherits:
Settingslogic
  • Object
show all
Defined in:
lib/rabbithole/connection.rb

Instance Method Summary collapse

Instance Method Details

#to_aryObject

Fix rspec integration error



59
60
61
# File 'lib/rabbithole/connection.rb', line 59

def to_ary
  to_a
end

#to_urlObject



54
55
56
# File 'lib/rabbithole/connection.rb', line 54

def to_url
  "amqp://#{user}:#{password}@#{host}:#{port}/#{vhost.gsub('/', '%2F')}"
end