Class: Admin::PlansFinder

Inherits:
Object
  • Object
show all
Defined in:
app/finders/admin/plans_finder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#paramsObject (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

#executeObject


11
12
13
14
# File 'app/finders/admin/plans_finder.rb', line 11

def execute
  plans = Plan.all
  by_name(plans)
end