class RestPki::PdfMarkImageElement
Attributes
image[RW]
Public Class Methods
new(relative_container = nil, image = nil)
click to toggle source
Calls superclass method
RestPki::PdfMarkElement::new
# File lib/rest_pki/pdf_mark_image_element.rb, line 5 def initialize(relative_container = nil, image = nil) super(PdfMarkElementType::IMAGE, relative_container) @image = image end
Public Instance Methods
to_model()
click to toggle source
Calls superclass method
RestPki::PdfMarkElement#to_model
# File lib/rest_pki/pdf_mark_image_element.rb, line 10 def to_model model = super unless @image.nil? model['image'] = @image.to_model end model end
with_image(image_content, mime_type)
click to toggle source
# File lib/rest_pki/pdf_mark_image_element.rb, line 25 def with_image(image_content, mime_type) @image = PdfMarkImage.new(image_content, mime_type) self end
with_mark_image(image)
click to toggle source
region FluentApi
# File lib/rest_pki/pdf_mark_image_element.rb, line 20 def with_mark_image(image) @image = image self end