Class: Blinkist::Config::Adapter
- Inherits:
-
Object
- Object
- Blinkist::Config::Adapter
show all
- Extended by:
- Gem::Deprecate
- Defined in:
- lib/blinkist/config/adapters/adapter.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(env, app_name) ⇒ Adapter
Returns a new instance of Adapter.
4
5
6
7
|
# File 'lib/blinkist/config/adapters/adapter.rb', line 4
def initialize(env, app_name)
@env = env
@app_name = app_name
end
|
Class Method Details
.instance_for(type, env, app_name) ⇒ Object
18
19
20
|
# File 'lib/blinkist/config/adapters/adapter.rb', line 18
def instance_for(type, env, app_name)
Factory.new("Blinkist::Adapter.for", Adapters::BUILT_IN, env, app_name).call(type)
end
|
Instance Method Details
#get(_key, _default = nil) ⇒ Object
9
10
11
|
# File 'lib/blinkist/config/adapters/adapter.rb', line 9
def get(_key, _default=nil, **)
raise NotImplementedError
end
|
#preload ⇒ Object
13
14
15
|
# File 'lib/blinkist/config/adapters/adapter.rb', line 13
def preload(**)
end
|