Class: Spree::BaseFinder

Inherits:
Object
  • Object
show all
Defined in:
app/finders/spree/base_finder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scope:, params:) ⇒ BaseFinder

Returns a new instance of BaseFinder.



3
4
5
6
# File 'app/finders/spree/base_finder.rb', line 3

def initialize(scope:, params:)
  @scope = scope
  @params = params
end

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.



8
9
10
# File 'app/finders/spree/base_finder.rb', line 8

def params
  @params
end

#scopeObject (readonly)

Returns the value of attribute scope.



8
9
10
# File 'app/finders/spree/base_finder.rb', line 8

def scope
  @scope
end

Instance Method Details

#executeObject



10
11
12
# File 'app/finders/spree/base_finder.rb', line 10

def execute
  scope
end