Sha256: 2f44d846c789948254654f06ef59027c7fe026f2e7123edbb013c34144a8ecd8

Contents?: true

Size: 325 Bytes

Versions: 6

Compression:

Stored size: 325 Bytes

Contents

module FreebaseImporters
  class QueryBuilder
    def initialize
      @filters, @maps = [], []
    end

    # add a filter or whatever
    # "type" => "/book/book",
    def map(target, value = nil, comparison = nil, &block)
      if !value || value.empty? || block_given?
        # create accesor
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
freebase-importers-0.0.6 lib/freebase_importers/query_builder.rb
freebase-importers-0.0.5 lib/freebase_importers/query_builder.rb
freebase-importers-0.0.4 lib/freebase_importers/query_builder.rb
freebase-importers-0.0.3 lib/freebase_importers/query_builder.rb
freebase-importers-0.0.2 lib/freebase_importers/query_builder.rb
freebase-importers-0.0.1 lib/freebase_importers/query_builder.rb