Class: SearchResult::Synonym
- Inherits:
-
Object
- Object
- SearchResult::Synonym
- Defined in:
- app/models/search_result.rb
Overview
AKA Related Query in Google UI
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#query ⇒ Object
Returns the value of attribute query.
-
#query_result ⇒ Object
Returns the value of attribute query_result.
Instance Method Summary collapse
-
#url ⇒ Object
Return the url that should be.
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label.
277 278 279 |
# File 'app/models/search_result.rb', line 277 def label @label end |
#query ⇒ Object
Returns the value of attribute query.
277 278 279 |
# File 'app/models/search_result.rb', line 277 def query @query end |
#query_result ⇒ Object
Returns the value of attribute query_result.
277 278 279 |
# File 'app/models/search_result.rb', line 277 def query_result @query_result end |
Instance Method Details
#url ⇒ Object
Return the url that should be
280 281 282 |
# File 'app/models/search_result.rb', line 280 def url "#{query_result.path}?query=#{query}" end |