Class: AvalaraSdk::Auth::TokenResponse
- Inherits:
-
Object
- Object
- AvalaraSdk::Auth::TokenResponse
- Defined in:
- lib/avalara_sdk/auth/token_response.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#expiry_time ⇒ Object
Returns the value of attribute expiry_time.
-
#http_status_code ⇒ Object
Returns the value of attribute http_status_code.
-
#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(access_token, token_type, expiry_time, refresh_token, http_status_code, error_message) ⇒ TokenResponse
constructor
A new instance of TokenResponse.
Constructor Details
#initialize(access_token, token_type, expiry_time, refresh_token, http_status_code, error_message) ⇒ TokenResponse
Returns a new instance of TokenResponse.
10 11 12 13 14 15 16 17 |
# File 'lib/avalara_sdk/auth/token_response.rb', line 10 def initialize(access_token, token_type, expiry_time, refresh_token, http_status_code, ) @access_token = access_token @token_type = token_type @expiry_time = expiry_time @refresh_token = refresh_token @http_status_code = http_status_code @error_message = end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
3 4 5 |
# File 'lib/avalara_sdk/auth/token_response.rb', line 3 def access_token @access_token end |
#error_message ⇒ Object
Returns the value of attribute error_message.
8 9 10 |
# File 'lib/avalara_sdk/auth/token_response.rb', line 8 def @error_message end |
#expiry_time ⇒ Object
Returns the value of attribute expiry_time.
5 6 7 |
# File 'lib/avalara_sdk/auth/token_response.rb', line 5 def expiry_time @expiry_time end |
#http_status_code ⇒ Object
Returns the value of attribute http_status_code.
7 8 9 |
# File 'lib/avalara_sdk/auth/token_response.rb', line 7 def http_status_code @http_status_code end |
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
6 7 8 |
# File 'lib/avalara_sdk/auth/token_response.rb', line 6 def refresh_token @refresh_token end |
#token_type ⇒ Object
Returns the value of attribute token_type.
4 5 6 |
# File 'lib/avalara_sdk/auth/token_response.rb', line 4 def token_type @token_type end |