Class: Basecamp::Oauth::RefreshRequest
- Inherits:
-
Data
- Object
- Data
- Basecamp::Oauth::RefreshRequest
- Defined in:
- lib/basecamp/oauth/refresh_request.rb
Overview
Parameters for refreshing an access token.
Instance Attribute Summary collapse
-
#client_id ⇒ String?
readonly
The client identifier (optional).
-
#client_secret ⇒ String?
readonly
The client secret (optional).
-
#refresh_token ⇒ String
readonly
The refresh token.
-
#token_endpoint ⇒ String
readonly
URL of the token endpoint.
-
#use_legacy_format ⇒ Boolean
readonly
Use Launchpad's non-standard token format.
Instance Method Summary collapse
-
#initialize(token_endpoint:, refresh_token:, client_id: nil, client_secret: nil, use_legacy_format: false) ⇒ RefreshRequest
constructor
A new instance of RefreshRequest.
Constructor Details
#initialize(token_endpoint:, refresh_token:, client_id: nil, client_secret: nil, use_legacy_format: false) ⇒ RefreshRequest
Returns a new instance of RefreshRequest.
19 20 21 22 23 24 25 26 27 |
# File 'lib/basecamp/oauth/refresh_request.rb', line 19 def initialize( token_endpoint:, refresh_token:, client_id: nil, client_secret: nil, use_legacy_format: false ) super end |
Instance Attribute Details
#client_id ⇒ String? (readonly)
The client identifier (optional)
12 13 14 |
# File 'lib/basecamp/oauth/refresh_request.rb', line 12 def client_id @client_id end |
#client_secret ⇒ String? (readonly)
The client secret (optional)
12 13 14 |
# File 'lib/basecamp/oauth/refresh_request.rb', line 12 def client_secret @client_secret end |
#refresh_token ⇒ String (readonly)
The refresh token
12 13 14 |
# File 'lib/basecamp/oauth/refresh_request.rb', line 12 def refresh_token @refresh_token end |
#token_endpoint ⇒ String (readonly)
URL of the token endpoint
12 13 14 |
# File 'lib/basecamp/oauth/refresh_request.rb', line 12 def token_endpoint @token_endpoint end |
#use_legacy_format ⇒ Boolean (readonly)
Use Launchpad's non-standard token format
12 13 14 |
# File 'lib/basecamp/oauth/refresh_request.rb', line 12 def use_legacy_format @use_legacy_format end |