Module: Spinel

Extended by:
Config
Defined in:
lib/spinel.rb,
lib/spinel/base.rb,
lib/spinel/config.rb,
lib/spinel/helper.rb,
lib/spinel/backend.rb,
lib/spinel/matcher.rb,
lib/spinel/version.rb

Defined Under Namespace

Modules: Config, Helper Classes: Backend, Base, Matcher

Constant Summary collapse

MAJOR =
0
MINOR =
1
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

Methods included from Config

configure, redis, redis=

Class Method Details

.backend(type = :default) ⇒ Object



13
14
15
# File 'lib/spinel.rb', line 13

def self.backend type = :default
  Backend.new type
end

.matcher(type = :default) ⇒ Object



17
18
19
# File 'lib/spinel.rb', line 17

def self.matcher type = :default
  Matcher.new type
end