Class: Customer::Guest::DetailedFinder

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

Instance Method Summary collapse

Constructor Details

#initialize(email:) ⇒ DetailedFinder



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

def initialize(email:)
  @email = email
end

Instance Method Details

#executeObject



10
11
12
# File 'app/finders/customer/guest/detailed_finder.rb', line 10

def execute
  OpenStruct.new(customer: customer, transactions: transactions, guest: true)
end