Class: Soulmate::Base
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #base ⇒ Object
- #cachebase ⇒ Object
- #database ⇒ Object
-
#initialize(type) ⇒ Base
constructor
A new instance of Base.
Methods included from Helpers
#normalize, #prefixes_for_phrase
Constructor Details
#initialize(type) ⇒ Base
Returns a new instance of Base.
9 10 11 |
# File 'lib/soulmate/base.rb', line 9 def initialize(type) @type = normalize(type) end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/soulmate/base.rb', line 7 def type @type end |
Instance Method Details
#base ⇒ Object
13 14 15 |
# File 'lib/soulmate/base.rb', line 13 def base "soulmate-index:#{type}" end |
#cachebase ⇒ Object
21 22 23 |
# File 'lib/soulmate/base.rb', line 21 def cachebase "soulmate-cache:#{type}" end |
#database ⇒ Object
17 18 19 |
# File 'lib/soulmate/base.rb', line 17 def database "soulmate-data:#{type}" end |