Created
June 21, 2013 11:15
-
-
Save jabbrwcky/5830562 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PropertyPdf < Prawn::Document | |
def initialize(property) | |
super(top_margin: 70) | |
@property = property | |
@qrcode_content = 'http://tbd.com' | |
qrcode = RQRCode::QRCode.new('http://tbd.com', :size => 6, :level => :h ) | |
building_heading | |
end | |
def qrcode | |
print_qr_code(@qrcode_content, :dot=>2.8) | |
render_file("qr3.pdf") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment