Sha256: a7b8c2dc9fbd29297a1f419ba06d60fd32c537d8c3118cdfa354fd0d2e8b5810

Contents?: true

Size: 470 Bytes

Versions: 32

Compression:

Stored size: 470 Bytes

Contents

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

Version data entries

32 entries across 32 versions & 1 rubygems

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