Class: AwsAlertMonitor::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-alert-monitor/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Config

Returns a new instance of Config.



6
7
8
9
10
11
# File 'lib/aws-alert-monitor/config.rb', line 6

def initialize(args={})
  @opts       = args[:opts] ||= Hash.new
  log_level   = args[:log_level]
  self.logger = AwsAlertMonitor::Logger.new :log_level => log_level
  self.file   = load_config_file
end

Instance Attribute Details

#fileObject

Returns the value of attribute file.



4
5
6
# File 'lib/aws-alert-monitor/config.rb', line 4

def file
  @file
end

#loggerObject

Returns the value of attribute logger.



4
5
6
# File 'lib/aws-alert-monitor/config.rb', line 4

def logger
  @logger
end