Class: Plaid::PlaidClientId

Inherits:
CoreLibrary::HeaderAuth
  • Object
show all
Defined in:
lib/plaid/http/auth/plaid_client_id.rb

Overview

Utility class for custom header authorization.

Instance Method Summary collapse

Constructor Details

#initialize(plaid_client_id_credentials) ⇒ PlaidClientId

Initialization constructor.



16
17
18
19
20
21
22
# File 'lib/plaid/http/auth/plaid_client_id.rb', line 16

def initialize(plaid_client_id_credentials)
  auth_params = {}
  auth_params['PLAID-CLIENT-ID'] = plaid_client_id_credentials.plaid_client_id unless
    plaid_client_id_credentials.nil? || plaid_client_id_credentials.plaid_client_id.nil?

  super auth_params
end

Instance Method Details

#error_messageObject

Display error message on occurrence of authentication failure.



11
12
13
# File 'lib/plaid/http/auth/plaid_client_id.rb', line 11

def error_message
  'PlaidClientId: plaid_client_id is undefined.'
end