class Echochamber::Recipient
Public Class Methods
Creates an Echochamber::Recipient
object
@param [Hash] params SYMBOL-referenced Hash. Role, and either fax or email is required. @option params [String] :role [‘SIGNER’ or ‘APPROVER’]: Specify the role of recipient (REQUIRED) @option params [String] :email Email of the recipient. This is required if fax is not provided. Both fax and email can not be provided (email or fax REQUIRED) @option params [String] :fax Fax of the recipient. This is required if email is not provided. Both fax and email can not be provided (email or fax REQUIRED) @option params [Array] :securityOptions Security options that apply to the recipient. Populate the array with instances of {Echochamber::RecipientSecurityOption Echochamber::RecipientSecurityOption
} @return [Echochamber::Recipient]
# File lib/echochamber/agreement/recipient.rb, line 15 def initialize(params) require_keys([:role], params) require_exactly_one([:email, :fax], params) merge!(params) end