Module: Tire::DSL

Included in:
Tire
Defined in:
lib/tire/dsl.rb

Instance Method Summary collapse

Instance Method Details

#configure(&block) ⇒ Object



5
6
7
# File 'lib/tire/dsl.rb', line 5

def configure(&block)
  Configuration.class_eval(&block)
end

#count(names, types, payload) ⇒ Object



17
18
19
# File 'lib/tire/dsl.rb', line 17

def count(names, types, payload)
  Count.new(names, types, payload)
end

#index(name) ⇒ Object



9
10
11
# File 'lib/tire/dsl.rb', line 9

def index(name)
  Index.new(name)
end

#search(names, types, payload) ⇒ Object



13
14
15
# File 'lib/tire/dsl.rb', line 13

def search(names, types, payload)
  Search.new(names, types, payload)
end