Class: QuickSearch::ArticlePresenter

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

Instance Method Summary collapse

Instance Method Details

#set_attributesObject



3
4
5
6
7
8
# File 'app/presenters/quick_search/article_presenter.rb', line 3

def set_attributes
  @title = result.subject
  @sub_header = result.description.truncate_words(6).html_safe
  @link = article_path(result)
  @reference_number = result.id
end