Class: Spree::BaseFinder
- Inherits:
-
Object
- Object
- Spree::BaseFinder
- Defined in:
- app/finders/spree/base_finder.rb
Direct Known Subclasses
Addresses::Find, CmsPages::Find, Countries::Find, CreditCards::Find, Menus::Find
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(scope:, params:) ⇒ BaseFinder
constructor
A new instance of BaseFinder.
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
#params ⇒ Object (readonly)
Returns the value of attribute params.
8 9 10 |
# File 'app/finders/spree/base_finder.rb', line 8 def params @params end |
#scope ⇒ Object (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
#execute ⇒ Object
10 11 12 |
# File 'app/finders/spree/base_finder.rb', line 10 def execute scope end |