Method: FIR::Util::ClassMethods#generate_rqrcode
- Defined in:
- lib/fir/util.rb
#generate_rqrcode(string, png_file_path) ⇒ Object
79 80 81 82 83 |
# File 'lib/fir/util.rb', line 79 def generate_rqrcode(string, png_file_path) qrcode = ::RQRCode::QRCode.new(string.to_s) qrcode.as_png(size: 500, border_modules: 2, file: png_file_path) png_file_path end |