Class: Protozoa::Views::Search
- Defined in:
- lib/amiba/frontend/views/search.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#footer ⇒ Object
readonly
Returns the value of attribute footer.
-
#page ⇒ Object
readonly
Returns the value of attribute page.
-
#query ⇒ Object
readonly
Returns the value of attribute query.
-
#results ⇒ Object
readonly
Returns the value of attribute results.
Attributes inherited from Layout
Instance Method Summary collapse
Methods inherited from Layout
#edit_url, #escaped_name, #view_url
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
4 5 6 |
# File 'lib/amiba/frontend/views/search.rb', line 4 def content @content end |
#footer ⇒ Object (readonly)
Returns the value of attribute footer.
4 5 6 |
# File 'lib/amiba/frontend/views/search.rb', line 4 def @footer end |
#page ⇒ Object (readonly)
Returns the value of attribute page.
4 5 6 |
# File 'lib/amiba/frontend/views/search.rb', line 4 def page @page end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
4 5 6 |
# File 'lib/amiba/frontend/views/search.rb', line 4 def query @query end |
#results ⇒ Object (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_results ⇒ Object
10 11 12 |
# File 'lib/amiba/frontend/views/search.rb', line 10 def has_results !@results.empty? end |
#no_results ⇒ Object
14 15 16 |
# File 'lib/amiba/frontend/views/search.rb', line 14 def no_results @results.empty? end |
#title ⇒ Object
6 7 8 |
# File 'lib/amiba/frontend/views/search.rb', line 6 def title "Search results for " + @query end |