Class: GSA::Engine
- Inherits:
-
Object
- Object
- GSA::Engine
- Defined in:
- lib/bcms_google_mini_search/gsa.rb
Overview
Represents a single instance of a Google Mini
Direct Known Subclasses
Instance Attribute Summary collapse
-
#default_collection ⇒ Object
Returns the value of attribute default_collection.
-
#default_front_end ⇒ Object
Returns the value of attribute default_front_end.
-
#host ⇒ Object
Returns the value of attribute host.
-
#path ⇒ Object
Returns the value of attribute path.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Engine
constructor
A new instance of Engine.
-
#options_for_query ⇒ Object
Return a Hash suitable to be passed to SearchResult.find().
Constructor Details
#initialize(options = {}) ⇒ Engine
Returns a new instance of Engine.
8 9 10 11 12 13 14 |
# File 'lib/bcms_google_mini_search/gsa.rb', line 8 def initialize( = {}) self.port = 8080 self.path = "/search" self.host = [:host] self.default_front_end = [:front_end] self.default_collection = [:collection] end |
Instance Attribute Details
#default_collection ⇒ Object
Returns the value of attribute default_collection.
6 7 8 |
# File 'lib/bcms_google_mini_search/gsa.rb', line 6 def default_collection @default_collection end |
#default_front_end ⇒ Object
Returns the value of attribute default_front_end.
6 7 8 |
# File 'lib/bcms_google_mini_search/gsa.rb', line 6 def default_front_end @default_front_end end |
#host ⇒ Object
Returns the value of attribute host.
6 7 8 |
# File 'lib/bcms_google_mini_search/gsa.rb', line 6 def host @host end |
#path ⇒ Object
Returns the value of attribute path.
6 7 8 |
# File 'lib/bcms_google_mini_search/gsa.rb', line 6 def path @path end |
#port ⇒ Object
Returns the value of attribute port.
6 7 8 |
# File 'lib/bcms_google_mini_search/gsa.rb', line 6 def port @port end |
Instance Method Details
#options_for_query ⇒ Object
Return a Hash suitable to be passed to SearchResult.find()
17 18 19 |
# File 'lib/bcms_google_mini_search/gsa.rb', line 17 def {:host=>host, :front_end=>default_front_end, :collection=>default_collection} end |