Class: WinewooCore::Services::Finders::Wines::WinesFinder

Inherits:
Object
  • Object
show all
Defined in:
lib/winewoo_core/services/finders/wines/wines_finder.rb

Instance Method Summary collapse

Constructor Details

#initialize(filters) ⇒ WinesFinder

Returns a new instance of WinesFinder.



4
5
6
7
8
9
10
11
# File 'lib/winewoo_core/services/finders/wines/wines_finder.rb', line 4

def initialize(filters)
  @filters = filters
  @interpro = @filters.interpro
  @producer = @filters.producer
  @page = @filters.page
  @per_page = @filters.per_page
  @top_wines = @filters.top_wines
end