Translate private and pub api to ruby.