Class: Sequel::Unicache::GlobalConfiguration
- Inherits:
-
Object
- Object
- Sequel::Unicache::GlobalConfiguration
- Defined in:
- lib/sequel/unicache/global_configuration.rb
Direct Known Subclasses
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ GlobalConfiguration
constructor
A new instance of GlobalConfiguration.
- #set(opts) ⇒ Object
- #to_h ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ GlobalConfiguration
Returns a new instance of GlobalConfiguration.
4 5 6 |
# File 'lib/sequel/unicache/global_configuration.rb', line 4 def initialize opts = {} @opts = default_config.merge opts end |
Instance Method Details
#set(opts) ⇒ Object
8 9 10 |
# File 'lib/sequel/unicache/global_configuration.rb', line 8 def set opts @opts.merge! opts end |
#to_h ⇒ Object
12 13 14 |
# File 'lib/sequel/unicache/global_configuration.rb', line 12 def to_h @opts end |