Class: Protozoa::Views::Search

Inherits:
Layout
  • Object
show all
Defined in:
lib/amiba/frontend/views/search.rb

Instance Attribute Summary collapse

Attributes inherited from Layout

#name

Instance Method Summary collapse

Methods inherited from Layout

#edit_url, #escaped_name, #view_url

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content


4
5
6
# File 'lib/amiba/frontend/views/search.rb', line 4

def content
  @content
end

Returns the value of attribute footer


4
5
6
# File 'lib/amiba/frontend/views/search.rb', line 4

def footer
  @footer
end

#pageObject (readonly)

Returns the value of attribute page


4
5
6
# File 'lib/amiba/frontend/views/search.rb', line 4

def page
  @page
end

#queryObject (readonly)

Returns the value of attribute query


4
5
6
# File 'lib/amiba/frontend/views/search.rb', line 4

def query
  @query
end

#resultsObject (readonly)

Returns the value of attribute results


4
5
6
# File 'lib/amiba/frontend/views/search.rb', line 4

def results
  @results
end

Instance Method Details

#has_resultsObject


10
11
12
# File 'lib/amiba/frontend/views/search.rb', line 10

def has_results
  !@results.empty?
end

#no_resultsObject


14
15
16
# File 'lib/amiba/frontend/views/search.rb', line 14

def no_results 
  @results.empty?
end

#titleObject


6
7
8
# File 'lib/amiba/frontend/views/search.rb', line 6

def title
  "Search results for " + @query
end