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.



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

def access_token
  @access_token
end

#token_typeObject

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

Returns:

  • (Boolean)


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

def bearer?
  token_type == BEARER_TYPE
end