Class: Maglev::SearchPages

Inherits:
Object
  • Object
show all
Includes:
Injectable
Defined in:
app/services/maglev/search_pages.rb

Overview

Search for a single page if the id param is passed to the call function or search for all the pages matching or not the q criteria (based on its presence). It also searches among the static pages

Instance Method Summary collapse

Instance Method Details

#callObject



18
19
20
# File 'app/services/maglev/search_pages.rb', line 18

def call
  id.nil? ? all_pages : single_page
end