API wrapper for chatspry in ruby