Adjusted ruby code to implement the same api as the java and c# code. One network and one api for all languages.