Class: SolidusAdmin::Orders::Show::CustomerSearch::Result::Component
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- SolidusAdmin::Orders::Show::CustomerSearch::Result::Component
- Defined in:
- app/components/solidus_admin/orders/show/customer_search/result/component.rb
Instance Method Summary collapse
-
#initialize(order:, customer:) ⇒ Component
constructor
A new instance of Component.
Constructor Details
#initialize(order:, customer:) ⇒ Component
Returns a new instance of Component.
6 7 8 9 10 |
# File 'app/components/solidus_admin/orders/show/customer_search/result/component.rb', line 6 def initialize(order:, customer:) @order = order @customer = customer @name = (customer.default_user_bill_address || customer.default_user_ship_address)&.address&.name if customer end |