Class: GSA::SuggestedQueries::Suggestion

Inherits:
Object
  • Object
show all
Defined in:
lib/bcms_google_mini_search/gsa.rb

Overview

Since generating are handled in the view, this might no longer be necessary a separate class, and could probably be converted into a String.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(query) ⇒ Suggestion

Returns a new instance of Suggestion.



77
78
79
# File 'lib/bcms_google_mini_search/gsa.rb', line 77

def initialize(query)
  self.query = query
end

Instance Attribute Details

#queryObject

Returns the value of attribute query.



75
76
77
# File 'lib/bcms_google_mini_search/gsa.rb', line 75

def query
  @query
end