Module: Spinel
- Extended by:
- Config
- Defined in:
- lib/spinel.rb,
lib/spinel/client.rb,
lib/spinel/config.rb,
lib/spinel/helper.rb,
lib/spinel/indexer.rb,
lib/spinel/version.rb,
lib/spinel/searcher.rb more...
Defined Under Namespace
Modules: Config, Helper, Indexer, Searcher Classes: Client
Constant Summary collapse
- MAJOR =
0
- MINOR =
2
- PATCH =
0
- VERSION =
[MAJOR, MINOR, PATCH].compact.join('.')
Constants included from Config
Config::DEFAULT_CACHE_EXPIRE, Config::DEFAULT_DOCUMENT_KEY, Config::DEFAULT_MATCH_LIMIT, Config::DEFAULT_MIN_COMPLETE, Config::DEFAULT_NAMESPACE
Instance Attribute Summary
Attributes included from Config
#cache_expire, #document_key, #match_limit, #min_complete, #namespace
Class Method Summary collapse
- .method_missing(method_name, *args, type: :default, &block) ⇒ Object
- .new(type = :default) ⇒ Object
- .respond_to?(method_name, include_private = false) ⇒ Boolean
Methods included from Config
Class Method Details
permalink .method_missing(method_name, *args, type: :default, &block) ⇒ Object
[View source]
17 18 19 20 |
# File 'lib/spinel.rb', line 17 def self.method_missing(method_name, *args, type: :default, &block) return super unless new(type).respond_to?(method_name) new(type).send(method_name, *args, &block) end |
permalink .new(type = :default) ⇒ Object
[View source]
13 14 15 |
# File 'lib/spinel.rb', line 13 def self.new type = :default Client.new type end |
permalink .respond_to?(method_name, include_private = false) ⇒ Boolean
22 23 24 |
# File 'lib/spinel.rb', line 22 def self.respond_to?(method_name, include_private = false) new.respond_to?(method_name, include_private) || super end |