Sha256: 8afbe495099badbdb11aab9abb54a4eeb55b4dc31961e23f97b0cd4ec4e6bf4a

Contents?: true

Size: 315 Bytes

Versions: 4

Compression:

Stored size: 315 Bytes

Contents

module Soulmate
  class Base
    include Helpers

    attr_accessor :type

    def initialize(type)
      @type = normalize(type)
    end

    def base
      "soulmate-index:#{type}"
    end

    def database
      "soulmate-data:#{type}"
    end

    def cachebase
      "soulmate-cache:#{type}"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
soulmate_rails-0.3.0 lib/soulmate/base.rb
soulmate_rails-0.2.1 lib/soulmate/base.rb
soulmate_rails-0.2.1.beta lib/soulmate/base.rb
soulmate_rails-0.2.0.alpha lib/soulmate/base.rb