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