Class: RQRCode::QRCode

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Export::HTML, Export::SVG
Defined in:
lib/rqrcode/qrcode/qrcode.rb

Constant Summary

Constants included from Export::SVG

Export::SVG::DEFAULT_SVG_ATTRIBUTES, Export::SVG::SVG_PATH_COMMANDS

Constants included from Export::HTML

Export::HTML::TABLE_CLOSE, Export::HTML::TABLE_OPEN, Export::HTML::TD_BLACK, Export::HTML::TD_WHITE, Export::HTML::TR_CLOSE, Export::HTML::TR_OPEN

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Export::SVG

#as_svg

Methods included from Export::HTML

#as_html

Constructor Details

#initialize(string, *args) ⇒ QRCode

Returns a new instance of QRCode.



14
15
16
# File 'lib/rqrcode/qrcode/qrcode.rb', line 14

def initialize(string, *args)
  @qrcode = RQRCodeCore::QRCode.new(string, *args)
end

Instance Attribute Details

#qrcodeObject (readonly)

Returns the value of attribute qrcode.



12
13
14
# File 'lib/rqrcode/qrcode/qrcode.rb', line 12

def qrcode
  @qrcode
end