Class: ThePlaidApi::ClientId
- Inherits:
-
CoreLibrary::HeaderAuth
- Object
- CoreLibrary::HeaderAuth
- ThePlaidApi::ClientId
- Defined in:
- lib/the_plaid_api/http/auth/client_id.rb
Overview
Utility class for custom header authorization.
Instance Method Summary collapse
-
#error_message ⇒ Object
Display error message on occurrence of authentication failure.
-
#initialize(client_id_credentials) ⇒ ClientId
constructor
Initialization constructor.
Constructor Details
#initialize(client_id_credentials) ⇒ ClientId
Initialization constructor.
16 17 18 19 20 21 22 |
# File 'lib/the_plaid_api/http/auth/client_id.rb', line 16 def initialize(client_id_credentials) auth_params = {} auth_params['PLAID-CLIENT-ID'] = client_id_credentials.plaid_client_id unless client_id_credentials.nil? || client_id_credentials.plaid_client_id.nil? super auth_params end |
Instance Method Details
#error_message ⇒ Object
Display error message on occurrence of authentication failure.
11 12 13 |
# File 'lib/the_plaid_api/http/auth/client_id.rb', line 11 def 'ClientId: plaid_client_id is undefined.' end |