Module: Flipper::Adapter
- Included in:
- Flipper::Adapters::Instrumented, Flipper::Adapters::Memoizable, Flipper::Adapters::Memory, Flipper::Adapters::OperationLogger, Flipper::Adapters::PStore, Flipper::Adapters::ReadOnly
- Defined in:
- lib/flipper/adapter.rb
Overview
Adding a module include so we have some hooks for stuff down the road
Instance Method Summary collapse
-
#get_multi(features) ⇒ Object
Public: Get multiple features in one call.
Instance Method Details
#get_multi(features) ⇒ Object
Public: Get multiple features in one call. Defaults to one get per feature. Feel free to override per adapter to make this more efficient and reduce network calls.
7 8 9 10 11 12 13 |
# File 'lib/flipper/adapter.rb', line 7 def get_multi(features) result = {} features.each do |feature| result[feature.key] = get(feature) end result end |