class DocuSign::Recipient

Constants

ATTRIBUTES

Public Class Methods

new(attributes = {}) click to toggle source
# File lib/docu_sign/recipient.rb, line 14
def initialize(attributes = {})
  ATTRIBUTES.each do |attr|
    self.send("#{attr}=", attributes[attr])
  end
end

Public Instance Methods

to_savon() click to toggle source
# File lib/docu_sign/recipient.rb, line 20
def to_savon
  {
    "ID" => self.id,
    "UserName" => self.user_name,
    "SignerName" => self.signer_name,
    "Email" => self.email,
    "Type" => self.type,
    "AccessCode" => self.access_code,
    "AddAccessCodeToEmail" => self.add_access_code_to_email,
    "RequireIDLookup" => self.require_id_lookup?,
    "IDCheckConfigurationName" => self.id_check_configuration_name,
    "LiveIDRecipientAuthentication" => self.live_id_recipient_authentication,
    "FacebookRecipientAuthentication" => self.facebook_recipient_authentication,
    "LinkedinRecipientAuthentication" => self.linkedin_recipient_authentication,
    "GoogleRecipientAuthentication" => self.google_recipient_authentication,
    "SalesforceRecipientAuthentication" => self.salesforce_recipient_authentication,
    "TwitterRecipientAuthentication" => self.twitter_recipient_authentication,
    "YahooRecipientAuthentication" => self.yahoo_recipient_authentication,
    "OpenIDRecipientAuthentication" => self.open_id_recipient_authentication,
    "PhoneAuthentication" => self.phone_authentication,
    "SignatureInfo" => self.signature_info,
    "CaptiveInfo" => self.captive_info,
    # TODO: CustomFields
    "RoutingOrder" => self.routing_order,
    "IDCheckInformationInput" => self.id_check_information_input,
    "AutoNavigation" => self.auto_navigation,
    # TODO: RecipientAttachment
    "Note" => self.note,
    "RoleName" => self.role_name,
    "TemplateLocked" => self.template_locked,
    "TemplateRequired" => self.template_required,
    "TemplateAccessCodeRequired" => self.template_access_code_required,
    "DefaultRecipient" => self.default_recipient
    # TODO: EmailNotification
  }.delete_if{|key, value| value.nil?}
end