Class: Customer::Registered::DetailedFinder

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

Instance Method Summary collapse

Constructor Details

#initialize(customer:) ⇒ DetailedFinder

Returns a new instance of DetailedFinder.



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

def initialize(customer:)
  @customer = customer
end

Instance Method Details

#executeObject



10
11
12
13
14
# File 'app/finders/customer/registered/detailed_finder.rb', line 10

def execute
  return empty_result if customer.nil?

  OpenStruct.new(customer: customer, transactions: transactions, guest: false)
end