Class: RiskalyzeAPI::Configuration
- Inherits:
-
Object
- Object
- RiskalyzeAPI::Configuration
- Defined in:
- lib/riskalyze_api/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#authorization_type ⇒ Object
Returns the value of attribute authorization_type.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#oauth_token ⇒ Object
Returns the value of attribute oauth_token.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_key ⇒ Object
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_type ⇒ Object
Returns the value of attribute authorization_type.
16 17 18 |
# File 'lib/riskalyze_api/configuration.rb', line 16 def @authorization_type end |
#debug ⇒ Object
Returns the value of attribute debug.
16 17 18 |
# File 'lib/riskalyze_api/configuration.rb', line 16 def debug @debug end |
#oauth_token ⇒ Object
Returns the value of attribute oauth_token.
16 17 18 |
# File 'lib/riskalyze_api/configuration.rb', line 16 def oauth_token @oauth_token end |
#url ⇒ Object
Returns the value of attribute url.
16 17 18 |
# File 'lib/riskalyze_api/configuration.rb', line 16 def url @url end |