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