Class: School21::GlobalConfig

Inherits:
CoreLibrary::GlobalConfiguration
  • Object
show all
Defined in:
lib/school21/config/global_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_managersObject

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

Parameters:

  • value

    the value to set the attribute client_configuration to.



6
7
8
# File 'lib/school21/config/global_config.rb', line 6

def client_configuration=(value)
  @client_configuration = value
end

#credentialsObject

Returns the value of attribute credentials.



5
6
7
# File 'lib/school21/config/global_config.rb', line 5

def credentials
  @credentials
end

#enable_loggingObject

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

#loggerObject

Returns the value of attribute logger.



5
6
7
# File 'lib/school21/config/global_config.rb', line 5

def logger
  @logger
end