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


 

 
require "rest-client"

RestClient.proxy = ENV["STATICA_URL"] if ENV["STATICA_URL"]

res = RestClient.get("http://ip.jsontest.com")

puts "Your IP was: #{res.body}"