Class: ConfigService
- Inherits:
-
Object
- Object
- ConfigService
- Defined in:
- lib/services/config_service.rb
Class Method Summary collapse
Class Method Details
.get ⇒ Object
11 12 13 |
# File 'lib/services/config_service.rb', line 11 def self.get @config ||= (read() || AppConfig.new) end |
.update(updates) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/services/config_service.rb', line 4 def self.update updates updates.each do |key, value| get.send("#{key}=", value) end save! end |