Class: Uber::Token

Inherits:
Base
  • Object
show all
Defined in:
lib/uber/token.rb

Constant Summary collapse

BEARER_TYPE =
'bearer'

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#[], #initialize

Constructor Details

This class inherits a constructor from Uber::Base

Instance Attribute Details

#access_tokenObject Also known as: to_s

Returns the value of attribute access_token.



5
6
7
# File 'lib/uber/token.rb', line 5

def access_token
  @access_token
end

#token_typeObject

Returns the value of attribute token_type.



5
6
7
# File 'lib/uber/token.rb', line 5

def token_type
  @token_type
end

Instance Method Details

#bearer?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/uber/token.rb', line 11

def bearer?
  token_type == BEARER_TYPE
end