Class: QuickSearch::CustomerPresenter
- Inherits:
-
PinPresenter
- Object
- PinPresenter
- QuickSearch::CustomerPresenter
- Defined in:
- app/presenters/quick_search/customer_presenter.rb
Overview
Presenter: customer presenter.
Instance Method Summary collapse
Instance Method Details
#profile_image_url ⇒ Object
9 10 11 12 13 |
# File 'app/presenters/quick_search/customer_presenter.rb', line 9 def profile_image_url return if result.profile_image.blank? result.profile_image.image_url(width: 80, height: 80) end |
#set_attributes ⇒ Object
4 5 6 7 |
# File 'app/presenters/quick_search/customer_presenter.rb', line 4 def set_attributes @title = result.full_name @sub_header = build_sub_header end |