Class: Ilovepdf::Signature::InputElement
- Inherits:
-
Object
- Object
- Ilovepdf::Signature::InputElement
- Includes:
- FileElement
- Defined in:
- lib/ilovepdf/signature/input_element.rb
Instance Method Summary collapse
- #description=(value) ⇒ Object
-
#initialize(file, label, description = nil) ⇒ InputElement
constructor
A new instance of InputElement.
- #label=(value) ⇒ Object
- #set_info(label: "", description:) ⇒ Object
Methods included from FileElement
Constructor Details
#initialize(file, label, description = nil) ⇒ InputElement
5 6 7 8 9 10 |
# File 'lib/ilovepdf/signature/input_element.rb', line 5 def initialize(file, label,description = nil) super(file) self.label=label self.description=description @type = :input end |
Instance Method Details
#description=(value) ⇒ Object
21 22 23 24 |
# File 'lib/ilovepdf/signature/input_element.rb', line 21 def description=(value) raise ::Ilovepdf::Errors::ArgumentError.new("value must be a String type of object") unless value.is_a?(String) self.set_info_parameter(:description,value) end |
#label=(value) ⇒ Object
16 17 18 19 |
# File 'lib/ilovepdf/signature/input_element.rb', line 16 def label=(value) raise ::Ilovepdf::Errors::ArgumentError.new("value must be a String type of object") unless value.is_a?(String) self.set_info_parameter(:label,value) end |
#set_info(label: "", description:) ⇒ Object
12 13 14 |
# File 'lib/ilovepdf/signature/input_element.rb', line 12 def set_info(label: "", description:) @info = {}.to_s end |