On April 1, 2021, we are moving all of our QuotaGuard Support Documentation to
https://quotaguard.github.io/qg-docs/
Please Update Your Support Bookmarks
Documentation for this article will be maintained at
https://quotaguard.github.io/qg-docs/quickstart-ruby
Please click on the above link to ensure you are reading
the most recent and updated documentation.
Installation
When you sign up you will be provided with a unique username and password that you can use when configuring your proxy service in your application:
http://username:password@proxy.quotaguard.com:9292
We recommend you store the connection string in an environment variable QUOTAGUARD_URL to maintain compatibility with platforms like Heroku and CloudControl.
You can test your proxy setup using curl.
$ curl -x username:password@proxy.quotaguard.com:9292 http://www.google.com/
Integration
Ruby Geocoder is the leading geocoding solution for Ruby and Rails and works seamlessly with QuotaGuard.
Simply add your authenticated connection string in to the geocoder initializer.
# config/initializers/geocoder.rb Geocoder.configure( ... :http_proxy => ENV["QUOTAGUARD_URL"], :timeout => 5 )