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

Version Path
splitclient-rb-8.5.0-java lib/splitclient-rb/helpers/util.rb
splitclient-rb-8.5.0 lib/splitclient-rb/helpers/util.rb
splitclient-rb-8.5.0.pre.rc1-java lib/splitclient-rb/helpers/util.rb
splitclient-rb-8.5.0.pre.rc1 lib/splitclient-rb/helpers/util.rb
splitclient-rb-8.4.1.pre.rc1-java lib/splitclient-rb/helpers/util.rb
splitclient-rb-8.4.1.pre.rc1 lib/splitclient-rb/helpers/util.rb
splitclient-rb-8.4.0-java lib/splitclient-rb/helpers/util.rb
splitclient-rb-8.4.0 lib/splitclient-rb/helpers/util.rb
splitclient-rb-8.4.0.pre.rc1-java lib/splitclient-rb/helpers/util.rb
splitclient-rb-8.4.0.pre.rc1 lib/splitclient-rb/helpers/util.rb
splitclient-rb-8.4.0.rc.1-java lib/splitclient-rb/helpers/util.rb
splitclient-rb-8.4.0.rc.1 lib/splitclient-rb/helpers/util.rb
splitclient-rb-8.3.2.pre.rc2-java lib/splitclient-rb/helpers/util.rb
splitclient-rb-8.3.2.pre.rc2 lib/splitclient-rb/helpers/util.rb
splitclient-rb-8.3.2.pre.rc1-java lib/splitclient-rb/helpers/util.rb
splitclient-rb-8.3.2.pre.rc1 lib/splitclient-rb/helpers/util.rb
splitclient-rb-8.3.1-java lib/splitclient-rb/helpers/util.rb
splitclient-rb-8.3.1 lib/splitclient-rb/helpers/util.rb
splitclient-rb-8.3.1.pre.rc1-java lib/splitclient-rb/helpers/util.rb
splitclient-rb-8.3.1.pre.rc1 lib/splitclient-rb/helpers/util.rb