From b1b78bab9cf92432ea65dcce4b9770f91bddbdf4 Mon Sep 17 00:00:00 2001 From: puppe1990 Date: Mon, 28 Oct 2024 20:15:06 -0300 Subject: [PATCH] remove unitilized service --- app/services/product/generate_qr_code.rb | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 app/services/product/generate_qr_code.rb diff --git a/app/services/product/generate_qr_code.rb b/app/services/product/generate_qr_code.rb deleted file mode 100644 index 100f734b..00000000 --- a/app/services/product/generate_qr_code.rb +++ /dev/null @@ -1,15 +0,0 @@ -module Services - module Product - class GenerateQrCode - def initialize(product:) - @product = product - end - - def call - qr_data = { id: @product.id, account_id: @product.account_id }.to_json - qr_code = RQRCode::QRCode.new(qr_data) - qr_code.as_png(size: 50).to_data_url - end - end - end -end \ No newline at end of file