Write ruby client