Api client in ruby