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_code ⇒ Object

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_in ⇒ Object

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

#interval ⇒ Object

Returns the value of attribute interval.



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

def interval
  @interval
end

#scope ⇒ Object

Returns the value of attribute scope.



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

def scope
  @scope
end

#user_code ⇒ Object

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_uri ⇒ Object

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