ruby api consuming the suploy api