Class: FattureInCloud_Ruby_Sdk::OAuth2AuthorizationCodeParams

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

Overview

The Oauth2AuthorizationCodeParams class is used to manage the OAuth2 redirect url query parameters.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(authorization_code, state) ⇒ OAuth2AuthorizationCodeParams

Initializes a new instance of the OAuth2AuthorizationCodeParams class.

Parameters:

  • authorization_code (String)

    The authorization code.

  • state (String)

    The state.



185
186
187
188
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 185

def initialize(authorization_code, state)
  @authorization_code = authorization_code
  @state = state
end

Instance Attribute Details

#authorization_codeObject

Returns the value of attribute authorization_code.



180
181
182
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 180

def authorization_code
  @authorization_code
end

#stateObject

Returns the value of attribute state.



180
181
182
# File 'lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb', line 180

def state
  @state
end