Class: Customer::Registered::DetailedFinder
- Inherits:
-
Object
- Object
- Customer::Registered::DetailedFinder
- Defined in:
- app/finders/customer/registered/detailed_finder.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(customer:) ⇒ DetailedFinder
constructor
A new instance of DetailedFinder.
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
#execute ⇒ Object
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 |