Integrating with the rest-client gem is a one-liner. This will print out one of your QuotaGuard Static IPs:


 

 
require "rest-client"
 
RestClient.proxy = ENV["QUOTAGUARDSTATIC_URL"] if ENV["QUOTAGUARDSTATIC_URL"]
 
res = RestClient.get("http://ip.jsontest.com")
 
puts "Your IP was: #{res.body}"