Class: Endcollector

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config_file) ⇒ Endcollector

Returns a new instance of Endcollector.



19
20
21
22
23
# File 'lib/endcollector.rb', line 19

def initialize(config_file)
  @config = YAML::load_file(config_file)
  @jira = Jira.new(@config)
  @nagios = Nagios.new(@config)
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



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

def config
  @config
end

#jiraObject

Returns the value of attribute jira.



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

def jira
  @jira
end

#nagiosObject

Returns the value of attribute nagios.



17
18
19
# File 'lib/endcollector.rb', line 17

def nagios
  @nagios
end