Module: Flipper::Adapter

Overview

Adding a module include so we have some hooks for stuff down the road

Instance Method Summary collapse

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