Class: Pimon::Config
- Inherits:
-
Object
- Object
- Pimon::Config
- Defined in:
- lib/pimon/config.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#hostname ⇒ Object
readonly
Returns the value of attribute hostname.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
5 6 7 |
# File 'lib/pimon/config.rb', line 5 def config @config end |
#hostname ⇒ Object (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
#colors ⇒ Object
12 13 14 |
# File 'lib/pimon/config.rb', line 12 def colors config['colors'] end |
#stats ⇒ Object
16 17 18 |
# File 'lib/pimon/config.rb', line 16 def stats config['stats_collector'] end |