Class: ThePlaidApi::PlaidVersion
- Inherits:
-
CoreLibrary::HeaderAuth
- Object
- CoreLibrary::HeaderAuth
- ThePlaidApi::PlaidVersion
- Defined in:
- lib/the_plaid_api/http/auth/plaid_version.rb
Overview
Utility class for custom header authorization.
Instance Method Summary collapse
-
#error_message ⇒ Object
Display error message on occurrence of authentication failure.
-
#initialize(plaid_version_credentials) ⇒ PlaidVersion
constructor
Initialization constructor.
Constructor Details
#initialize(plaid_version_credentials) ⇒ PlaidVersion
Initialization constructor.
16 17 18 19 20 21 22 |
# File 'lib/the_plaid_api/http/auth/plaid_version.rb', line 16 def initialize(plaid_version_credentials) auth_params = {} auth_params['Plaid-Version'] = plaid_version_credentials.plaid_version unless plaid_version_credentials.nil? || plaid_version_credentials.plaid_version.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/plaid_version.rb', line 11 def 'PlaidVersion: plaid_version is undefined.' end |