class FreebaseImporters::QueryBuilder

Public Class Methods

new() click to toggle source
# File lib/freebase_importers/query_builder.rb, line 3
def initialize
  @filters, @maps = [], []
end

Public Instance Methods

map(target, value = nil, comparison = nil, &block) click to toggle source

add a filter or whatever “type” => “/book/book”,

# File lib/freebase_importers/query_builder.rb, line 9
def map(target, value = nil, comparison = nil, &block)
  if !value || value.empty? || block_given?
    # create accesor
  end
end