Resource Index - add debug option to ruby client.