Class: Adp::Connection::AuthorizationCodeConfiguration

Inherits:
ConnectionConfiguration show all
Defined in:
lib/adp/authorization_code_configuration.rb

Instance Attribute Summary collapse

Attributes inherited from ConnectionConfiguration

#accessScope, #apiRequestURL, #clientID, #clientSecret, #grantType, #sslCertPath, #sslKeyPass, #sslKeyPath, #tokenServerURL

Instance Method Summary collapse

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.authorizationCode = 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

#authorizationCodeObject

Returns the value of attribute authorizationCode.



8
9
10
# File 'lib/adp/authorization_code_configuration.rb', line 8

def authorizationCode
  @authorizationCode
end

#baseAuthorizationURLObject

Returns the value of attribute baseAuthorizationURL.



9
10
11
# File 'lib/adp/authorization_code_configuration.rb', line 9

def baseAuthorizationURL
  @baseAuthorizationURL
end

#redirectURLObject

Returns the value of attribute redirectURL.



10
11
12
# File 'lib/adp/authorization_code_configuration.rb', line 10

def redirectURL
  @redirectURL
end

#responseTypeObject

Returns the value of attribute responseType.



11
12
13
# File 'lib/adp/authorization_code_configuration.rb', line 11

def responseType
  @responseType
end

#scopeObject

Returns the value of attribute scope.



12
13
14
# File 'lib/adp/authorization_code_configuration.rb', line 12

def scope
  @scope
end

#stateObject

Returns the value of attribute state.



13
14
15
# File 'lib/adp/authorization_code_configuration.rb', line 13

def state
  @state
end