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.
6 7 8 |
# File 'lib/uber/token.rb', line 6 def access_token @access_token end |
#token_type ⇒ Object
Returns the value of attribute token_type.
6 7 8 |
# File 'lib/uber/token.rb', line 6 def token_type @token_type end |
Instance Method Details
#bearer? ⇒ Boolean
12 13 14 |
# File 'lib/uber/token.rb', line 12 def bearer? token_type == BEARER_TYPE end |