Method: Elastictastic::Scope#initialize
- Defined in:
- lib/elastictastic/scope.rb
#initialize(index, clazz, search = Search.new, parent = nil, routing = nil) ⇒ Scope
Returns a new instance of Scope.
8 9 10 |
# File 'lib/elastictastic/scope.rb', line 8 def initialize(index, clazz, search = Search.new, parent = nil, routing = nil) @index, @clazz, @search, @parent, @routing = index, clazz, search, parent, routing end |