wrote ruby client