Class: Admin::PlansFinder
- Inherits:
-
Object
- Object
- Admin::PlansFinder
- Defined in:
- app/finders/admin/plans_finder.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(params = {}) ⇒ PlansFinder
constructor
A new instance of PlansFinder.
Constructor Details
#initialize(params = {}) ⇒ PlansFinder
Returns a new instance of PlansFinder.
7 8 9 |
# File 'app/finders/admin/plans_finder.rb', line 7 def initialize(params = {}) @params = params end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
5 6 7 |
# File 'app/finders/admin/plans_finder.rb', line 5 def params @params end |
Instance Method Details
#execute ⇒ Object
11 12 13 14 |
# File 'app/finders/admin/plans_finder.rb', line 11 def execute plans = Plan.all by_name(plans) end |