class DocuSign::Tab
Constants
- ATTRIBUTES
Public Class Methods
new(attributes = {})
click to toggle source
# File lib/docu_sign/tab.rb, line 18 def initialize(attributes = {}) ATTRIBUTES.each do |attr| self.send("#{attr}=", attributes[attr]) end end
Public Instance Methods
anchor(options = {}) { |a| ... }
click to toggle source
# File lib/docu_sign/tab.rb, line 24 def anchor(options = {}, &block) anchor_builder.build(options, &block).tap do |a| yield a if block_given? self.anchor_tab_item = a end end
anchor=(options = {})
click to toggle source
# File lib/docu_sign/tab.rb, line 31 def anchor=(options = {}) anchor options end
anchor_builder()
click to toggle source
# File lib/docu_sign/tab.rb, line 35 def anchor_builder @anchor_builder ||= DocuSign::Builder::AnchorBuilder.new end
to_savon()
click to toggle source
# File lib/docu_sign/tab.rb, line 47 def to_savon { "DocumentID" => self.document_id, "RecipientID" => self.recipient_id, "PageNumber" => self.page_number, "XPosition" => self.x_position, "YPosition" => self.y_position, "ScaleValue" => self.scale_value, "AnchorTabItem" => self.anchor_tab_item.try(:to_savon), "Type" => self.type, "Name" => self.name, "TabLabel" => self.tab_label, "Value" => self.value, "CustomTabType" => self.custom_tab_type, "CustomTabWidth" => self.custom_tab_width, "CustomTabHeight" => self.custom_tab_height, "CustomTabRequired" => self.custom_tab_required?, "ConcealValueOnDocument" => self.conceal_value_on_document?, "CustomTabLocked" => self.custom_tab_locked?, "CustomTabDisableAutoSize" => self.custom_tab_disable_auto_size?, "CustomTabListItems" => self.custom_tab_list_items, "CustomTabListValues" => self.custom_tab_list_values, "CustomTabListSelectedValue" => self.custom_tab_list_selected_value, "CustomTabRadioGroupName" => self.custom_tab_radio_group_name, "CustomTabValidationPattern" => self.custom_tab_validation_pattern, "CustomTabValidationMessage" => self.custom_tab_validation_message, "TemplateLocked" => self.template_locked?, "TemplateRequired" => self.template_required?, "ConditionalParentLabel" => self.conditional_parent_label, "ConditionalParentValue" => self.conditional_parent_value, "SharedTab" => self.shared_tab?, "RequireInitialOnSharedTabChange" => self.require_initial_on_shared_tab_change?, "Font" => self.font, "Bold" => self.bold, "Italic" => self.italic, "Underline" => self.underline, "FontColor" => self.font_color, "FontSize" => self.font_size, "MergeFieldXml" => self.merge_field_xml, "IncludeNoteInEmail" => self.include_note_in_email? }.delete_if{|key, value| value.nil?} end