Class: Pimon::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/pimon/config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



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

def config
  @config
end

#hostnameObject (readonly)

Returns the value of attribute hostname.



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

def hostname
  @hostname
end

Class Method Details

.load(filename) ⇒ Object



8
9
10
# File 'lib/pimon/config.rb', line 8

def self.load(filename)
  new(filename)
end

Instance Method Details

#colorsObject



12
13
14
# File 'lib/pimon/config.rb', line 12

def colors
  config['colors']
end

#statsObject



16
17
18
# File 'lib/pimon/config.rb', line 16

def stats
  config['stats_collector']
end