class RestPki::PdfMarkQRCodeElement
Attributes
draw_quiet_zone[RW]
qr_code_data[RW]
Public Class Methods
new(relative_container = nil, qr_code_data = nil)
click to toggle source
Calls superclass method
RestPki::PdfMarkElement::new
# File lib/rest_pki/pdf_mark_qr_code_element.rb, line 5 def initialize(relative_container = nil, qr_code_data = nil) super(PdfMarkElementType::QR_CODE, relative_container) @qr_code_data = qr_code_data @draw_quiet_zone = false end
Public Instance Methods
to_model()
click to toggle source
Calls superclass method
RestPki::PdfMarkElement#to_model
# File lib/rest_pki/pdf_mark_qr_code_element.rb, line 11 def to_model model = super model['qrCodeData'] = @qr_code_data model['qrCodeDataDrawQuietZones'] = @draw_quiet_zone model end
with_qr_code_data(qr_code_data)
click to toggle source
region FluentApi
# File lib/rest_pki/pdf_mark_qr_code_element.rb, line 20 def with_qr_code_data(qr_code_data) @qr_code_data = qr_code_data self end