class Soulmate::Base

Attributes

type[RW]

Public Class Methods

new(type) click to toggle source
# File lib/soulmate/base.rb, line 7
def initialize(type)
  @type = normalize(type)
end

Public Instance Methods

base() click to toggle source
# File lib/soulmate/base.rb, line 11
def base
  "soulmate-index:#{Soulmate.cache_namespace}_#{type}"
end
cachebase() click to toggle source
# File lib/soulmate/base.rb, line 19
def cachebase
  "soulmate-cache:#{Soulmate.cache_namespace}_#{type}"
end
database() click to toggle source
# File lib/soulmate/base.rb, line 15
def database
  "soulmate-data:#{Soulmate.cache_namespace}_#{type}"
end