Class: ShellSmartPayApi::OAuthTokenPostCredentials
- Inherits:
-
Object
- Object
- ShellSmartPayApi::OAuthTokenPostCredentials
- Defined in:
- lib/shell_smart_pay_api/http/auth/o_auth_token_post.rb
Overview
Data class for OAuthTokenPostCredentials. Data class for OAuthTokenPostCredentials.
Instance Attribute Summary collapse
-
#x_apigee_authorization ⇒ Object
readonly
Returns the value of attribute x_apigee_authorization.
Instance Method Summary collapse
- #clone_with(x_apigee_authorization: nil) ⇒ Object
-
#initialize(x_apigee_authorization:) ⇒ OAuthTokenPostCredentials
constructor
A new instance of OAuthTokenPostCredentials.
Constructor Details
#initialize(x_apigee_authorization:) ⇒ OAuthTokenPostCredentials
Returns a new instance of OAuthTokenPostCredentials.
30 31 32 33 34 |
# File 'lib/shell_smart_pay_api/http/auth/o_auth_token_post.rb', line 30 def initialize(x_apigee_authorization:) raise ArgumentError, 'x_apigee_authorization cannot be nil' if .nil? = end |
Instance Attribute Details
#x_apigee_authorization ⇒ Object (readonly)
Returns the value of attribute x_apigee_authorization.
28 29 30 |
# File 'lib/shell_smart_pay_api/http/auth/o_auth_token_post.rb', line 28 def end |
Instance Method Details
#clone_with(x_apigee_authorization: nil) ⇒ Object
36 37 38 39 40 41 42 |
# File 'lib/shell_smart_pay_api/http/auth/o_auth_token_post.rb', line 36 def clone_with(x_apigee_authorization: nil) ||= self. OAuthTokenPostCredentials.new( x_apigee_authorization: ) end |