converted qrcode to ruby