Rackspace API challenge while learning ruby