Method: SearchObject::Search#initialize

Defined in:
lib/search_object/search.rb

#initialize(scope:, options: nil, defaults: nil, params: nil) ⇒ Search

Returns a new instance of Search.



8
9
10
11
12
13
14
# File 'lib/search_object/search.rb', line 8

def initialize(scope:, options: nil, defaults: nil, params: nil)
  @scope = scope
  @options = options || {}
  @defaults = defaults || {}

  self.params = params
end