Class: AvalaraSdk::Auth::DeviceAuthorizationResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(device_code, user_code, verification_url, verification_url_complete, expiry, interval) ⇒ DeviceAuthorizationResponse

Returns a new instance of DeviceAuthorizationResponse.



10
11
12
13
14
15
16
17
# File 'lib/avalara_sdk/auth/device_authorization_response.rb', line 10

def initialize(device_code, user_code, verification_url, verification_url_complete, expiry, interval)
  @device_code = device_code
  @user_code = user_code
  @verification_url = verification_url
  @verification_url_complete = verification_url_complete
  @expiry = expiry
  @interval = interval
end

Instance Attribute Details

#device_codeObject

Returns the value of attribute device_code.



3
4
5
# File 'lib/avalara_sdk/auth/device_authorization_response.rb', line 3

def device_code
  @device_code
end

#expiryObject

Returns the value of attribute expiry.



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

def expiry
  @expiry
end

#intervalObject

Returns the value of attribute interval.



7
8
9
# File 'lib/avalara_sdk/auth/device_authorization_response.rb', line 7

def interval
  @interval
end

#user_codeObject

Returns the value of attribute user_code.



4
5
6
# File 'lib/avalara_sdk/auth/device_authorization_response.rb', line 4

def user_code
  @user_code
end

#verification_urlObject

Returns the value of attribute verification_url.



5
6
7
# File 'lib/avalara_sdk/auth/device_authorization_response.rb', line 5

def verification_url
  @verification_url
end

#verification_url_completeObject

Returns the value of attribute verification_url_complete.



6
7
8
# File 'lib/avalara_sdk/auth/device_authorization_response.rb', line 6

def verification_url_complete
  @verification_url_complete
end