Continue work on ruby api

Change-Id: Ib089c04897a18f8423f21e9cc1cc78c6621f1321