Module: M0xQr

Defined in:
lib/m0x_qr.rb,
lib/m0x_qr/engine.rb,
app/jobs/m0x_qr/application_job.rb,
app/models/m0x_qr/application_record.rb,
app/helpers/m0x_qr/application_helper.rb,
app/mailers/m0x_qr/application_mailer.rb,
app/controllers/m0x_qr/example_controller.rb,
app/controllers/m0x_qr/application_controller.rb

Defined Under Namespace

Modules: ApplicationHelper Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Engine, ExampleController

Class Method Summary collapse

Class Method Details

.generate(text) ⇒ Object



5
6
7
# File 'lib/m0x_qr.rb', line 5

def self.generate(text)
  RQRCode::QRCode.new(text).as_svg
end