Ruby APIs for Q app