Class: SearchResult::Synonym

Inherits:
Object
  • Object
show all
Defined in:
app/models/search_result.rb

Overview

AKA Related Query in Google UI

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#labelObject

Returns the value of attribute label.



277
278
279
# File 'app/models/search_result.rb', line 277

def label
  @label
end

#queryObject

Returns the value of attribute query.



277
278
279
# File 'app/models/search_result.rb', line 277

def query
  @query
end

#query_resultObject

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

#urlObject

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