Class: School21::GlobalConfig
- Inherits:
-
CoreLibrary::GlobalConfiguration
- Object
- CoreLibrary::GlobalConfiguration
- School21::GlobalConfig
- Defined in:
- lib/school21/config/global_config.rb
Instance Attribute Summary collapse
-
#auth_managers ⇒ Object
Returns the value of attribute auth_managers.
-
#client_configuration ⇒ Object
writeonly
Sets the attribute client_configuration.
-
#credentials ⇒ Object
Returns the value of attribute credentials.
-
#enable_logging ⇒ Object
Returns the value of attribute enable_logging.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize(client_configuration: ClientConfig.new) ⇒ GlobalConfig
constructor
A new instance of GlobalConfig.
Constructor Details
#initialize(client_configuration: ClientConfig.new) ⇒ GlobalConfig
Returns a new instance of GlobalConfig.
8 9 10 11 12 13 |
# File 'lib/school21/config/global_config.rb', line 8 def initialize(client_configuration: ClientConfig.new) super @enable_logging = false @credentials = {} end |
Instance Attribute Details
#auth_managers ⇒ Object
Returns the value of attribute auth_managers.
5 6 7 |
# File 'lib/school21/config/global_config.rb', line 5 def auth_managers @auth_managers end |
#client_configuration=(value) ⇒ Object (writeonly)
Sets the attribute client_configuration
6 7 8 |
# File 'lib/school21/config/global_config.rb', line 6 def client_configuration=(value) @client_configuration = value end |
#credentials ⇒ Object
Returns the value of attribute credentials.
5 6 7 |
# File 'lib/school21/config/global_config.rb', line 5 def credentials @credentials end |
#enable_logging ⇒ Object
Returns the value of attribute enable_logging.
5 6 7 |
# File 'lib/school21/config/global_config.rb', line 5 def enable_logging @enable_logging end |
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/school21/config/global_config.rb', line 5 def logger @logger end |