Class: KVMultiplex::Providers::Readonly
- Inherits:
-
KVMultiplex::Provider
- Object
- KVMultiplex::Provider
- KVMultiplex::Providers::Readonly
- Defined in:
- lib/kvmultiplex/providers/readonly.rb
Instance Method Summary collapse
- #get(subkey, full_key) ⇒ Object
-
#initialize(provider) ⇒ Readonly
constructor
A new instance of Readonly.
Methods inherited from KVMultiplex::Provider
Constructor Details
#initialize(provider) ⇒ Readonly
Returns a new instance of Readonly.
8 9 10 11 12 |
# File 'lib/kvmultiplex/providers/readonly.rb', line 8 def initialize(provider) raise "provider must be a KVMultiplex::Provider." unless provider.is_a?(KVMultiplex::Provider) @provider = provider end |
Instance Method Details
#get(subkey, full_key) ⇒ Object
14 15 16 |
# File 'lib/kvmultiplex/providers/readonly.rb', line 14 def get(subkey, full_key) @provider.get(subkey, full_key) end |