Class: Doorkeeper::OAuth::RefreshTokenRequest
- Inherits:
-
BaseRequest
- Object
- BaseRequest
- Doorkeeper::OAuth::RefreshTokenRequest
- Includes:
- Helpers
- Defined in:
- lib/doorkeeper/oauth/refresh_token_request.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
readonly
Returns the value of attribute access_token.
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#credentials ⇒ Object
readonly
Returns the value of attribute credentials.
-
#missing_param ⇒ Object
readonly
Returns the value of attribute missing_param.
-
#refresh_token ⇒ Object
readonly
Returns the value of attribute refresh_token.
Attributes inherited from BaseRequest
Attributes included from Validations
Instance Method Summary collapse
-
#initialize(server, refresh_token, credentials, parameters = {}) ⇒ RefreshTokenRequest
constructor
A new instance of RefreshTokenRequest.
Methods inherited from BaseRequest
#after_successful_response, #authorize, #find_or_create_access_token, #scopes
Methods included from Validations
Constructor Details
#initialize(server, refresh_token, credentials, parameters = {}) ⇒ RefreshTokenRequest
Returns a new instance of RefreshTokenRequest.
17 18 19 20 21 22 23 24 |
# File 'lib/doorkeeper/oauth/refresh_token_request.rb', line 17 def initialize(server, refresh_token, credentials, parameters = {}) @server = server @refresh_token = refresh_token @credentials = credentials @original_scopes = parameters[:scope] || parameters[:scopes] @refresh_token_parameter = parameters[:refresh_token] @client = load_client(credentials) if credentials end |
Instance Attribute Details
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
14 15 16 |
# File 'lib/doorkeeper/oauth/refresh_token_request.rb', line 14 def access_token @access_token end |
#client ⇒ Object (readonly)
Returns the value of attribute client.
14 15 16 |
# File 'lib/doorkeeper/oauth/refresh_token_request.rb', line 14 def client @client end |
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
14 15 16 |
# File 'lib/doorkeeper/oauth/refresh_token_request.rb', line 14 def credentials @credentials end |
#missing_param ⇒ Object (readonly)
Returns the value of attribute missing_param.
15 16 17 |
# File 'lib/doorkeeper/oauth/refresh_token_request.rb', line 15 def missing_param @missing_param end |
#refresh_token ⇒ Object (readonly)
Returns the value of attribute refresh_token.
14 15 16 |
# File 'lib/doorkeeper/oauth/refresh_token_request.rb', line 14 def refresh_token @refresh_token end |