Class: Doorkeeper::Request::RefreshToken
- Inherits:
-
Object
- Object
- Doorkeeper::Request::RefreshToken
- Defined in:
- lib/doorkeeper/request/refresh_token.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
Class Method Summary collapse
Instance Method Summary collapse
- #authorize ⇒ Object
-
#initialize(refresh_token, client) ⇒ RefreshToken
constructor
A new instance of RefreshToken.
- #request ⇒ Object
Constructor Details
#initialize(refresh_token, client) ⇒ RefreshToken
Returns a new instance of RefreshToken.
10 11 12 |
# File 'lib/doorkeeper/request/refresh_token.rb', line 10 def initialize(refresh_token, client) @refresh_token, @client = refresh_token, client end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
8 9 10 |
# File 'lib/doorkeeper/request/refresh_token.rb', line 8 def client @client end |
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
8 9 10 |
# File 'lib/doorkeeper/request/refresh_token.rb', line 8 def refresh_token @refresh_token end |
Class Method Details
.build(server) ⇒ Object
4 5 6 |
# File 'lib/doorkeeper/request/refresh_token.rb', line 4 def self.build(server) new(server.current_refresh_token, server.client) end |
Instance Method Details
#authorize ⇒ Object
18 19 20 |
# File 'lib/doorkeeper/request/refresh_token.rb', line 18 def request. end |
#request ⇒ Object
14 15 16 |
# File 'lib/doorkeeper/request/refresh_token.rb', line 14 def request @request ||= OAuth::RefreshTokenRequest.new(Doorkeeper.configuration, refresh_token, client) end |