Class: Customer::Guest::BasicFinder

Inherits:
Object
  • Object
show all
Defined in:
app/finders/customer/guest/basic_finder.rb

Instance Method Summary collapse

Constructor Details

#initialize(emails:, options: {}) ⇒ BasicFinder

Returns a new instance of BasicFinder.



6
7
8
9
# File 'app/finders/customer/guest/basic_finder.rb', line 6

def initialize(emails:, options: {})
  @emails = emails
  @options = options
end

Instance Method Details

#executeObject



11
12
13
14
15
# File 'app/finders/customer/guest/basic_finder.rb', line 11

def execute
  return [] if emails.empty?

  guest_customers
end