Class: AvalaraSdk::Auth::TokenResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/avalara_sdk/auth/token_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, error_message)
  @access_token = access_token
  @token_type = token_type
  @expiry_time = expiry_time
  @refresh_token = refresh_token
  @http_status_code = http_status_code
  @error_message = error_message
end

Instance Attribute Details

#access_tokenObject

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_messageObject

Returns the value of attribute error_message.



8
9
10
# File 'lib/avalara_sdk/auth/token_response.rb', line 8

def error_message
  @error_message
end

#expiry_timeObject

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_codeObject

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_tokenObject

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_typeObject

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