Class: RiskalyzeAPI::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/riskalyze_api/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



18
19
20
21
22
# File 'lib/riskalyze_api/configuration.rb', line 18

def initialize
  @authorization_type = 'ApiKey' # ApiKey | Bearer
  @debug = false
  @url = 'https://api2.riskalyze.com/ap/v1'
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



16
17
18
# File 'lib/riskalyze_api/configuration.rb', line 16

def api_key
  @api_key
end

#authorization_typeObject

Returns the value of attribute authorization_type.



16
17
18
# File 'lib/riskalyze_api/configuration.rb', line 16

def authorization_type
  @authorization_type
end

#debugObject

Returns the value of attribute debug.



16
17
18
# File 'lib/riskalyze_api/configuration.rb', line 16

def debug
  @debug
end

#oauth_tokenObject

Returns the value of attribute oauth_token.



16
17
18
# File 'lib/riskalyze_api/configuration.rb', line 16

def oauth_token
  @oauth_token
end

#urlObject

Returns the value of attribute url.



16
17
18
# File 'lib/riskalyze_api/configuration.rb', line 16

def url
  @url
end