Class: QuickSearch::RoomConfigurationPresenter

Inherits:
PinPresenter
  • Object
show all
Defined in:
app/presenters/quick_search/room_configuration_presenter.rb

Overview

Presents a RoomConfiguration as a quick search result / pinned item.

See Also:

Instance Method Summary collapse

Instance Method Details

#set_attributesvoid

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_labelString

Returns the card type label.

Returns:

  • (String)

    the card type label



17
18
19
# File 'app/presenters/quick_search/room_configuration_presenter.rb', line 17

def type_label
  'Plan'
end