Class: Echochamber::RecipientSecurityOption

Inherits:
Hash
  • Object
show all
Includes:
Validatable
Defined in:
lib/echochamber/agreement/recipient_security_option.rb

Instance Method Summary collapse

Methods included from Validatable

#require_exactly_one, #require_keys, #validate_field

Constructor Details

#initialize(params) ⇒ Echochamber::RecipientSecurityOption

Validates RecipientSecurityOption parameters

Options Hash (params):

  • :authenticationMethod (String)

    ['INHERITED_FROM_DOCUMENT' or 'KBA' or 'PASSWORD' or 'WEB_IDENTITY' or 'PHONE' or 'NONE']: The authentication method for the recipients to have access to view and sign the document. (REQUIRED)

  • :phoneInfos (Array)

    The phoneInfo required for the recipient to view and sign the document. Populate with instances of Echochamber::PhoneInfo

  • :password (String)

    The password required for the recipient to view and sign the document.


14
15
16
17
# File 'lib/echochamber/agreement/recipient_security_option.rb', line 14

def initialize(params)
  require_keys([:authenticationMethod], params)
  merge! params
end