Class: Diskmon::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_loginObject (readonly)

Returns the value of attribute collector_login.


15
16
17
# File 'lib/diskmon/client/config.rb', line 15

def 
  @collector_login
end

#collector_passwordObject (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_urlObject (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