Sha256: 75bdcb18baeb38e6942f85257ba720bd0b8779913d8b4ad0dd9de39284f01d1a
Contents?: true
Size: 687 Bytes
Versions: 2
Compression:
Stored size: 687 Bytes
Contents
require "redis" require "recommendations/version" require "recommendations/configuration" require "recommendations/user/ratings" require "recommendations/user/similarity" require "recommendations/user/suggestions" require "recommendations/user" require "recommendations/item/ratings" require "recommendations/item/similarity" require "recommendations/item" module Recommendations extend self def configuration @configuration ||= Configuration.new end def configure(&block) configuration.instance_eval(&block) end def redis @redis ||= begin configuration.redis ? Redis.new(configuration.redis) : Redis.new end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
recommendations2-0.0.5 | lib/recommendations.rb |
recommendations2-0.0.4 | lib/recommendations.rb |