Class: IBM::Cloud::SDK::IAM::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/ibm/cloud/sdk/iam/token.rb

Instance Method Summary collapse

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_headerObject



11
12
13
# File 'lib/ibm/cloud/sdk/iam/token.rb', line 11

def authorization_header
  "#{token_type} #{access_token}"
end