Class: PasswordExpirationNotifier::Config
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- PasswordExpirationNotifier::Config
- Defined in:
- lib/password_expiration_notifier/config.rb
Instance Method Summary collapse
-
#initialize(options = nil) ⇒ Config
constructor
A new instance of Config.
- #to_h ⇒ Object
Constructor Details
#initialize(options = nil) ⇒ Config
Returns a new instance of Config.
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/password_expiration_notifier/config.rb', line 7 def initialize( = nil) @table = {} @hash_table = {} if if [:config] conf = YAML.load_file([:config]) @table, @hash_table = load_config(conf) end @table, @hash_table = load_config(, @table, @hash_table) end end |
Instance Method Details
#to_h ⇒ Object
21 22 23 |
# File 'lib/password_expiration_notifier/config.rb', line 21 def to_h @hash_table end |