ruby REST API sample