Sha256: 7111910286667902a145e9a1101dc59922b88521e5f809c54c79f32372c5adb3
Contents?: true
Size: 470 Bytes
Versions: 2
Compression:
Stored size: 470 Bytes
Contents
module Recommendations class Configuration attr_accessor :redis attr_writer :similar_items_count, :item_tolerance attr_writer :similar_users_count, :user_tolerance def similar_items_count @similar_items_count || 10 end def similar_users_count @similar_items_count || 10 end def item_tolerance @item_tolerance || 30 end def user_tolerance @user_tolerance || 1 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
recommendations2-0.0.5 | lib/recommendations/configuration.rb |
recommendations2-0.0.4 | lib/recommendations/configuration.rb |