Sha256: f9aa04e0479a6c9dd9bdce59810b48a97359fb3f47a87fe45a3f37a7e750a969
Contents?: true
Size: 484 Bytes
Versions: 32
Compression:
Stored size: 484 Bytes
Contents
# frozen_string_literal: true module SplitIoClient module Helpers class Util def self.segment_names_by_feature_flag(feature_flag) feature_flag[:conditions].each_with_object(Set.new) do |condition, names| condition[:matcherGroup][:matchers].each do |matcher| next if matcher[:userDefinedSegmentMatcherData].nil? names << matcher[:userDefinedSegmentMatcherData][:segmentName] end end end end end end
Version data entries
32 entries across 32 versions & 1 rubygems