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.2.0.0.0 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.1.0.0.9 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.1.0.0.8 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.1.0.0.7 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.1.0.0.6 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.1.0.0.5 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.1.0.0.4 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.1.0.0.3 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.1.0.0.2 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.1.0.0.10 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.1.0.0.1 lib/fiona7/obj_classes_from_queries.rb
infopark_fiona7-1.1.0.0.0 lib/fiona7/obj_classes_from_queries.rb