class PkiExpress::PadesVisualRepresentation
Attributes
image[RW]
position[RW]
text[RW]
Public Class Methods
new(text=nil, image=nil, position=nil)
click to toggle source
# File lib/pki_express/pades_visual_representation.rb, line 5 def initialize(text=nil, image=nil, position=nil) @text = text @image = image @position = position end
Public Instance Methods
to_model()
click to toggle source
# File lib/pki_express/pades_visual_representation.rb, line 11 def to_model unless @position raise new 'The visual representation position was not set' end { position: @position&.to_model, text: @text&.to_model, image: @image&.to_model, } end