Class: Isaca::Configuration
- Inherits:
-
Object
- Object
- Isaca::Configuration
- Defined in:
- lib/isaca.rb
Overview
Class used to store library configurations.
Instance Attribute Summary collapse
-
#debug ⇒ Boolean
Whether or not logging should be used.
-
#logger ⇒ Logger
The logger used for logging.
-
#secret_pass ⇒ String
Returns the secret_pass attribute value.
-
#url ⇒ String
Returns the url attribute value.
-
#user_agent ⇒ String
Returns the user_agent attribute value.
-
#verify_ssl ⇒ Boolean
Whether or not SSL certificates should be verified.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
113 114 115 116 |
# File 'lib/isaca.rb', line 113 def initialize @verify_ssl = true @debug = false end |
Instance Attribute Details
#debug ⇒ Boolean
Returns Whether or not logging should be used. Recommend false for production to ease GDPR concerns.
109 110 111 |
# File 'lib/isaca.rb', line 109 def debug @debug end |
#logger ⇒ Logger
Returns The logger used for logging.
105 106 107 |
# File 'lib/isaca.rb', line 105 def logger @logger end |
#secret_pass ⇒ String
Returns the secret_pass attribute value
93 94 95 |
# File 'lib/isaca.rb', line 93 def secret_pass @secret_pass end |
#url ⇒ String
Returns the url attribute value
93 94 95 |
# File 'lib/isaca.rb', line 93 def url @url end |
#user_agent ⇒ String
Returns the user_agent attribute value
97 98 99 |
# File 'lib/isaca.rb', line 97 def user_agent @user_agent end |
#verify_ssl ⇒ Boolean
Returns Whether or not SSL certificates should be verified. Recommend true for production.
101 102 103 |
# File 'lib/isaca.rb', line 101 def verify_ssl @verify_ssl end |