Class: SolidQueueMonitor::SearchResultsPresenter

Inherits:
BasePresenter show all
Defined in:
app/presenters/solid_queue_monitor/search_results_presenter.rb

Instance Method Summary collapse

Methods inherited from BasePresenter

#calculate_visible_pages, #default_url_options, #engine_mount_point, #filter_query_string, #format_arguments, #format_datetime, #format_hash, #generate_pagination, #queue_link, #request_path, #section_wrapper, #sort_arrow, #sortable_header

Constructor Details

#initialize(query, results) ⇒ SearchResultsPresenter

Returns a new instance of SearchResultsPresenter.



5
6
7
8
# File 'app/presenters/solid_queue_monitor/search_results_presenter.rb', line 5

def initialize(query, results)
  @query = query
  @results = results
end

Instance Method Details

#renderObject



10
11
12
# File 'app/presenters/solid_queue_monitor/search_results_presenter.rb', line 10

def render
  section_wrapper('Search Results', generate_content)
end