Class: QuickSearch::RoomConfigurationPresenter
- Inherits:
-
PinPresenter
- Object
- PinPresenter
- QuickSearch::RoomConfigurationPresenter
- Defined in:
- app/presenters/quick_search/room_configuration_presenter.rb
Overview
Presents a RoomConfiguration as a quick search result / pinned item.
Instance Method Summary collapse
-
#set_attributes ⇒ void
Sets the card title (room name), badge sub-header, and link.
-
#type_label ⇒ String
The card type label.
Instance Method Details
#set_attributes ⇒ void
This method returns an undefined value.
Sets the card title (room name), badge sub-header, and link.
10 11 12 13 14 |
# File 'app/presenters/quick_search/room_configuration_presenter.rb', line 10 def set_attributes @title = result.name @sub_header = build_sub_header @link = h.room_configuration_path(result) end |
#type_label ⇒ String
Returns the card type label.
17 18 19 |
# File 'app/presenters/quick_search/room_configuration_presenter.rb', line 17 def type_label 'Plan' end |