Class: Logman::Config
- Inherits:
-
Hash
- Object
- Hash
- Logman::Config
- Defined in:
- lib/logman/system.rb
Constant Summary collapse
- @@instance =
nil
Instance Attribute Summary collapse
-
#database_config ⇒ Object
Returns the value of attribute database_config.
-
#log_writer ⇒ Object
Returns the value of attribute log_writer.
-
#logman_endpoin ⇒ Object
logman as proxy.
-
#public_endpoint ⇒ Object
Returns the value of attribute public_endpoint.
-
#web_console ⇒ Object
logman as webconsole and api.
-
#write_token ⇒ Object
Returns the value of attribute write_token.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
17 18 19 20 21 22 |
# File 'lib/logman/system.rb', line 17 def initialize @log_writer = Logman::LogWriter @web_console = Logman::WebConsole @database_config = './database.yaml' end |
Instance Attribute Details
#database_config ⇒ Object
Returns the value of attribute database_config.
10 11 12 |
# File 'lib/logman/system.rb', line 10 def database_config @database_config end |
#log_writer ⇒ Object
Returns the value of attribute log_writer.
6 7 8 |
# File 'lib/logman/system.rb', line 6 def log_writer @log_writer end |
#logman_endpoin ⇒ Object
logman as proxy
13 14 15 |
# File 'lib/logman/system.rb', line 13 def logman_endpoin @logman_endpoin end |
#public_endpoint ⇒ Object
Returns the value of attribute public_endpoint.
15 16 17 |
# File 'lib/logman/system.rb', line 15 def public_endpoint @public_endpoint end |
#web_console ⇒ Object
logman as webconsole and api
9 10 11 |
# File 'lib/logman/system.rb', line 9 def web_console @web_console end |
#write_token ⇒ Object
Returns the value of attribute write_token.
14 15 16 |
# File 'lib/logman/system.rb', line 14 def write_token @write_token end |