Class: Diskmon::Config
- Inherits:
-
Object
- Object
- Diskmon::Config
- Defined in:
- lib/diskmon/client/config.rb
Instance Attribute Summary collapse
-
#collector_login ⇒ Object
readonly
Returns the value of attribute collector_login.
-
#collector_password ⇒ Object
readonly
Returns the value of attribute collector_password.
-
#collector_url ⇒ Object
readonly
Returns the value of attribute collector_url.
Instance Method Summary collapse
-
#initialize(filepath) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(filepath) ⇒ Config
Returns a new instance of Config.
7 8 9 10 11 12 |
# File 'lib/diskmon/client/config.rb', line 7 def initialize(filepath) h = YAML.load_file(filepath) @collector_url = h["collector_url"] @collector_login = h["collector_login"] @collector_password = h["collector_password"] end |
Instance Attribute Details
#collector_login ⇒ Object (readonly)
Returns the value of attribute collector_login.
15 16 17 |
# File 'lib/diskmon/client/config.rb', line 15 def collector_login @collector_login end |
#collector_password ⇒ Object (readonly)
Returns the value of attribute collector_password.
16 17 18 |
# File 'lib/diskmon/client/config.rb', line 16 def collector_password @collector_password end |
#collector_url ⇒ Object (readonly)
Returns the value of attribute collector_url.
14 15 16 |
# File 'lib/diskmon/client/config.rb', line 14 def collector_url @collector_url end |