Class: FattureInCloud_Ruby_Sdk::OAuth2TokenResponse
- Inherits:
-
Object
- Object
- FattureInCloud_Ruby_Sdk::OAuth2TokenResponse
- Defined in:
- lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb
Overview
The OAuth2TokenResponse class is used to manage the OAuth2 token response.
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#expires_in ⇒ Object
Returns the value of attribute expires_in.
-
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
-
#token_type ⇒ Object
Returns the value of attribute token_type.
Instance Method Summary collapse
-
#initialize(token_type, access_token, refresh_token, expires_in) ⇒ OAuth2TokenResponse
constructor
Initializes a new instance of the OAuth2TokenResponse class.
Constructor Details
#initialize(token_type, access_token, refresh_token, expires_in) ⇒ OAuth2TokenResponse
Initializes a new instance of the OAuth2TokenResponse class.
200 201 202 203 204 205 |
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 200 def initialize(token_type, access_token, refresh_token, expires_in) @token_type = token_type @access_token = access_token @refresh_token = refresh_token @expires_in = expires_in end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
193 194 195 |
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 193 def access_token @access_token end |
#expires_in ⇒ Object
Returns the value of attribute expires_in.
193 194 195 |
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 193 def expires_in @expires_in end |
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
193 194 195 |
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 193 def refresh_token @refresh_token end |
#token_type ⇒ Object
Returns the value of attribute token_type.
193 194 195 |
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 193 def token_type @token_type end |