Class: Echochamber::PhoneInfo

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

Instance Method Summary collapse

Methods included from Validatable

#require_exactly_one, #require_keys, #validate_field

Constructor Details

#initialize(params) ⇒ Echochamber::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


13
14
15
16
# File 'lib/echochamber/agreement/phone_info.rb', line 13

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