Class: Eventify::Configuration
- Inherits:
-
Object
- Object
- Eventify::Configuration
- Defined in:
- lib/eventify/configuration.rb
Constant Summary collapse
- PATH =
File.(File.join(ENV["HOME"], "/.eventify/config.yaml"))
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(configuration = {}) ⇒ Configuration
constructor
A new instance of Configuration.
- #save ⇒ Object
Constructor Details
#initialize(configuration = {}) ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 |
# File 'lib/eventify/configuration.rb', line 7 def initialize(configuration = {}) @configuration = default_configuration.merge(load).merge(configuration) end |
Instance Method Details
#[](key) ⇒ Object
17 18 19 |
# File 'lib/eventify/configuration.rb', line 17 def [](key) @configuration[key] end |