Class: Adp::Connection::AuthorizationCodeConfiguration
- Inherits:
-
ConnectionConfiguration
- Object
- ConnectionConfiguration
- Adp::Connection::AuthorizationCodeConfiguration
- Defined in:
- lib/adp/authorization_code_configuration.rb
Instance Attribute Summary collapse
-
#authorizationCode ⇒ Object
Returns the value of attribute authorizationCode.
-
#baseAuthorizationURL ⇒ Object
Returns the value of attribute baseAuthorizationURL.
-
#redirectURL ⇒ Object
Returns the value of attribute redirectURL.
-
#responseType ⇒ Object
Returns the value of attribute responseType.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#state ⇒ Object
Returns the value of attribute state.
Attributes inherited from ConnectionConfiguration
#accessScope, #apiRequestURL, #clientID, #clientSecret, #grantType, #sslCertPath, #sslKeyPass, #sslKeyPath, #tokenServerURL
Instance Method Summary collapse
-
#initialize(config) ⇒ AuthorizationCodeConfiguration
constructor
A new instance of AuthorizationCodeConfiguration.
Constructor Details
#initialize(config) ⇒ AuthorizationCodeConfiguration
Returns a new instance of AuthorizationCodeConfiguration.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/adp/authorization_code_configuration.rb', line 16 def initialize( config ) super self. = config["authorizationCode"] self.baseAuthorizationURL = config["baseAuthorizationURL"] self.redirectURL = config["redirectURL"] self.responseType = config["responseType"] self.scope = config["scope"] self.state = config["state"] self.grantType = "authorization_code" self end |
Instance Attribute Details
#authorizationCode ⇒ Object
Returns the value of attribute authorizationCode.
8 9 10 |
# File 'lib/adp/authorization_code_configuration.rb', line 8 def @authorizationCode end |
#baseAuthorizationURL ⇒ Object
Returns the value of attribute baseAuthorizationURL.
9 10 11 |
# File 'lib/adp/authorization_code_configuration.rb', line 9 def baseAuthorizationURL @baseAuthorizationURL end |
#redirectURL ⇒ Object
Returns the value of attribute redirectURL.
10 11 12 |
# File 'lib/adp/authorization_code_configuration.rb', line 10 def redirectURL @redirectURL end |
#responseType ⇒ Object
Returns the value of attribute responseType.
11 12 13 |
# File 'lib/adp/authorization_code_configuration.rb', line 11 def responseType @responseType end |
#scope ⇒ Object
Returns the value of attribute scope.
12 13 14 |
# File 'lib/adp/authorization_code_configuration.rb', line 12 def scope @scope end |
#state ⇒ Object
Returns the value of attribute state.
13 14 15 |
# File 'lib/adp/authorization_code_configuration.rb', line 13 def state @state end |