Class: Logman::Config

Inherits:
Hash
  • Object
show all
Defined in:
lib/logman/system.rb

Constant Summary collapse

@@instance =
nil

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_configObject

Returns the value of attribute database_config.



10
11
12
# File 'lib/logman/system.rb', line 10

def database_config
  @database_config
end

#log_writerObject

Returns the value of attribute log_writer.



6
7
8
# File 'lib/logman/system.rb', line 6

def log_writer
  @log_writer
end

#logman_endpoinObject

logman as proxy



13
14
15
# File 'lib/logman/system.rb', line 13

def logman_endpoin
  @logman_endpoin
end

#public_endpointObject

Returns the value of attribute public_endpoint.



15
16
17
# File 'lib/logman/system.rb', line 15

def public_endpoint
  @public_endpoint
end

#web_consoleObject

logman as webconsole and api



9
10
11
# File 'lib/logman/system.rb', line 9

def web_console
  @web_console
end

#write_tokenObject

Returns the value of attribute write_token.



14
15
16
# File 'lib/logman/system.rb', line 14

def write_token
  @write_token
end

Class Method Details

.instanceObject



26
27
28
29
# File 'lib/logman/system.rb', line 26

def self.instance
  @@instance = Config.new if @@instance.nil?
  @@instance
end