Class: FattureInCloud_Ruby_Sdk::OAuth2DeviceCodeResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb

Overview

The OAuth2DeviceCodeResponse class is used to manage the OAuth2 device code response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(device_code, user_code, scope, verification_uri, interval, expires_in) ⇒ OAuth2DeviceCodeResponse

Initializes a new instance of the OAuth2TokenResponse class.

Parameters:

  • device_code (String)

    The token type.

  • user_code (String)

    The access token.

  • user_code (Object)

    The access token.

  • verification_uri (String)

    The verification uri.

  • interval (Number)

    The interval between two requests.

  • expires_in (Number)

    The expire time.



219
220
221
222
223
224
225
226
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 219

def initialize(device_code, user_code, scope, verification_uri, interval, expires_in)
  @device_code = device_code
  @user_code = user_code
  @scope = scope
  @verification_uri = verification_uri
  @interval = interval
  @expires_in = expires_in
end

Instance Attribute Details

#device_codeObject

Returns the value of attribute device_code.



210
211
212
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 210

def device_code
  @device_code
end

#expires_inObject

Returns the value of attribute expires_in.



210
211
212
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 210

def expires_in
  @expires_in
end

#intervalObject

Returns the value of attribute interval.



210
211
212
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 210

def interval
  @interval
end

#scopeObject

Returns the value of attribute scope.



210
211
212
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 210

def scope
  @scope
end

#user_codeObject

Returns the value of attribute user_code.



210
211
212
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 210

def user_code
  @user_code
end

#verification_uriObject

Returns the value of attribute verification_uri.



210
211
212
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 210

def verification_uri
  @verification_uri
end