Ruby API for consol