Class: Spinel::Client
- Inherits:
-
Object
- Object
- Spinel::Client
- Defined in:
- lib/spinel/client.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #cachekey(words) ⇒ Object
- #database ⇒ Object
- #index(p) ⇒ Object
-
#initialize(type = :default) ⇒ Client
constructor
A new instance of Client.
Methods included from Searcher
Methods included from Indexer
Methods included from Helper
#document_body, #document_id, #document_score, #document_validate, #prefixes_for_phrase, #squish
Constructor Details
#initialize(type = :default) ⇒ Client
Returns a new instance of Client.
9 10 11 |
# File 'lib/spinel/client.rb', line 9 def initialize type = :default @type = type end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/spinel/client.rb', line 7 def type @type end |