Class: IBM::Cloud::SDK::IAM::Token
- Inherits:
-
Object
- Object
- IBM::Cloud::SDK::IAM::Token
- Defined in:
- lib/ibm/cloud/sdk/iam/token.rb
Instance Method Summary collapse
- #authorization_header ⇒ Object
-
#initialize(token_type, access_token) ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize(token_type, access_token) ⇒ Token
Returns a new instance of Token.
6 7 8 9 |
# File 'lib/ibm/cloud/sdk/iam/token.rb', line 6 def initialize(token_type, access_token) @token_type = token_type @access_token = access_token end |
Instance Method Details
#authorization_header ⇒ Object
11 12 13 |
# File 'lib/ibm/cloud/sdk/iam/token.rb', line 11 def "#{token_type} #{access_token}" end |