Sha256: 529ac01297713bafe6cedaf365e6d141ccd028352cbf0479fc9a34c0b2003702

Contents?: true

Size: 276 Bytes

Versions: 32

Compression:

Stored size: 276 Bytes

Contents

module Fiona7
  class ObjClassesFromQueries
    def initialize(queries)
      @queries = queries
    end

    def obj_classes
      @queries.map {|q| q[:value] if q[:operator] == :equal && q[:field] == :_obj_class }.flatten.compact.uniq.presence if @queries
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
infopark_fiona7-1.6.1.1.5 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.6.1.1.1 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.6.1.1.0 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.2.0.2.3 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.2.0.2.1 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.2.0.2.2 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.5.5.5.1 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.5.5.5.0 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.2.0.1.4 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.5.5.4.1 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.5.5.4.0 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.2.0.1.3 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.5.5.3.1 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.5.4.3.0 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.5.3.2.0 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.5.3.2.0.pre.beta1 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.5.2.1.0.pre.beta1 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.5.2.0.0 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.2.0.1.1 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.2.0.0.1 lib/fiona7/obj_classes_from_queries.rb