adding ruby api