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