Class: FattureInCloud_Ruby_Sdk::OAuth2AuthorizationCodeTokenResponse
- Inherits:
-
Object
- Object
- FattureInCloud_Ruby_Sdk::OAuth2AuthorizationCodeTokenResponse
- Defined in:
- lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb
Overview
The OAuth2AuthorizationCodeTokenResponse class is used to manage the OAuth2 authorization code 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) ⇒ OAuth2AuthorizationCodeTokenResponse
constructor
Initializes a new instance of the OAuth2AuthorizationCodeTokenResponse class.
Constructor Details
#initialize(token_type, access_token, refresh_token, expires_in) ⇒ OAuth2AuthorizationCodeTokenResponse
Initializes a new instance of the OAuth2AuthorizationCodeTokenResponse class.
123 124 125 126 127 128 |
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 123 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.
116 117 118 |
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 116 def access_token @access_token end |
#expires_in ⇒ Object
Returns the value of attribute expires_in.
116 117 118 |
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 116 def expires_in @expires_in end |
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
116 117 118 |
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 116 def refresh_token @refresh_token end |
#token_type ⇒ Object
Returns the value of attribute token_type.
116 117 118 |
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 116 def token_type @token_type end |