class DocuSign::AnchorTab

Constants

ATTRIBUTES

Public Class Methods

new(attributes = {}) click to toggle source
# File lib/docu_sign/anchor_tab.rb, line 11
def initialize(attributes = {})
  @anchor_tab_string = attributes[:string] || attributes[:anchor_tab_string]
  @x_offset = attributes[:x] || attributes[:x_offset]
  @y_offset = attributes[:y] || attributes[:y_offset]
  @unit = attributes[:unit]
  @ignore_if_not_present = attributes[:ignore_if_not_present]
end

Public Instance Methods

to_savon() click to toggle source
# File lib/docu_sign/anchor_tab.rb, line 19
def to_savon
  {
    "AnchorTabString" => self.anchor_tab_string,
    "XOffset" => self.x_offset,
    "YOffset" => self.y_offset,
    "Unit" => self.unit,
    "IgnoreIfNotPresent" => self.ignore_if_not_present?
  }.delete_if{|key, value| value.nil?}
end