Class: FattureInCloud_Ruby_Sdk::OAuth2TokenResponse

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

Overview

The OAuth2TokenResponse class is used to manage the OAuth2 token response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token_type, access_token, refresh_token, expires_in) ⇒ OAuth2TokenResponse

Initializes a new instance of the OAuth2TokenResponse class.

Parameters:

  • token_type (String)

    The token type.

  • access_token (String)

    The access token.

  • refresh_token (String)

    The refresh token.

  • expires_in (Number)

    The expire time.



200
201
202
203
204
205
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 200

def initialize(token_type, access_token, refresh_token, expires_in)
  @token_type = token_type
  @access_token = access_token
  @refresh_token = refresh_token
  @expires_in = expires_in
end

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token.



193
194
195
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 193

def access_token
  @access_token
end

#expires_inObject

Returns the value of attribute expires_in.



193
194
195
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 193

def expires_in
  @expires_in
end

#refresh_tokenObject

Returns the value of attribute refresh_token.



193
194
195
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 193

def refresh_token
  @refresh_token
end

#token_typeObject

Returns the value of attribute token_type.



193
194
195
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 193

def token_type
  @token_type
end