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