Class: Echosign::PhoneInfo

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

Instance Method Summary collapse

Methods included from Validatable

#require_exactly_one, #require_keys, #validate_field

Constructor Details

#initialize(params) ⇒ Echosign::PhoneInfo

PhoneInfo

Parameters:

  • params (Hash)

    SYMBOL-referenced Hash.

Options Hash (params):

  • :phone (String)

    The phone number required for the recipient to view and sign the document (REQUIRED)

  • :countryCode (String)

    The phoneInfo country code required for the recipient to view and sign the document if authentication type is PHONE



14
15
16
17
# File 'lib/echosign/agreement/phone_info.rb', line 14

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