Class: AwsAlertMonitor::Config
- Inherits:
-
Object
- Object
- AwsAlertMonitor::Config
- Defined in:
- lib/aws-alert-monitor/config.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Config
constructor
A new instance of Config.
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
#file ⇒ Object
Returns the value of attribute file.
4 5 6 |
# File 'lib/aws-alert-monitor/config.rb', line 4 def file @file end |
#logger ⇒ Object
Returns the value of attribute logger.
4 5 6 |
# File 'lib/aws-alert-monitor/config.rb', line 4 def logger @logger end |