Class: Uber::Token
Constant Summary collapse
- BEARER_TYPE =
'bearer'
Instance Attribute Summary collapse
-
#access_token ⇒ Object
(also: #to_s)
Returns the value of attribute access_token.
-
#token_type ⇒ Object
Returns the value of attribute token_type.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Uber::Base
Instance Attribute Details
#access_token ⇒ Object 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_type ⇒ Object
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
11 12 13 |
# File 'lib/uber/token.rb', line 11 def bearer? token_type == BEARER_TYPE end |