require "fiona7/obj_classes_from_queries" require "fiona7/attribute_name_mangler" module Fiona7 class AttributeNamesFromQueries def initialize(attribute, queries) @attribute = attribute @queries = queries end def attributes obj_classes = Fiona7::ObjClassesFromQueries.new(@queries).obj_classes obj_classes.map {|obj_class| AttributeNameMangler.new(@attribute, obj_class).mangle }.uniq.presence if obj_classes end end end